본문 바로가기

기타/이클립스

Eclipse에서 주석 Template 설정

이클립스 메뉴 : Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments 에서

 

아래와 같이 수정해주면 된다.

 

 

그럼 /** 누르고 엔터를 치면 아래와 같이 주석 Template이 자동으로 만들어진다.

 

 

 

${} 내용 설명

  ${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 (현재 연도)

 

'기타 > 이클립스' 카테고리의 다른 글

Code Mining  (0) 2022.06.30