Software/Eclipse
Eclipse 주석 설정
뿌사리다
2021. 8. 26. 23:09
클래스나 맴버 변수 위에서 주석을 입력할 경우 자동으로 입력되도록 항목을 정의할 수 있다.
Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments
아래와 같은 정보를 참고하여 사진처럼 정의하면 됨
${date} : Current date (현재 날짜) ${date} : Current date (현재 날짜) ${dollar} : The dollar symbol (달러문양) ${enclosing_type} : The type enclosing the method (선택된 메소드의 타입) ${file_name} : Name of the enclosing compilation (선택된 편집파일 이름) ${package_name} : Name of the enclosing package (선택된 패키지 이름) ${project_name} : Name of the enclosing project (선택된 프로젝트 이름) ${tags} : Generated Javadoc tags (@param, @return...) (Javedoc 태그 생성) ${time} : Current time (현재 시간) ${todo} : Todo task tag ('해야할일'태그 생성) ${type_name} : Name of the current type (현재 타입의 이름) ${user} : User name (사용자 이름) ${year} : Current year (현재 연도) |
주석 입력 키는 Alt + Shift + J
728x90
반응형
LIST