본문 바로가기
Programming/환경셋팅

이클립스 파일,메소드 주석 만들기

by Chan_찬 2015. 1. 15.
728x90

Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments 에서



파일정보 주석 (소스 가장 위 상단을 선택)

Types -> Edit

/**
 *
 * @author  : ${user}
 * @since   : ${date}
 * @filename : ${file_name}
 * @version : 1.0.0
 * @see
 *
 * <pre>
 * package  : ${package_name}
 * </pre>
 */


메소드정보 주석 (원하는 함수를 선택)

Methods -> Edit

/**
 *
 * @MethodName : ${enclosing_method}
 * ${tags}
 * @author : ${user}
 * @since : ${date}
 */

@author 개발자
@exception 메소드에서의 예외 확인
@param 메소드의 매개변수
@return 메소드의 반환값
@see 다른 주제에 관한 링크 지정
@serial 직렬화 필드
@since 릴리즈 기록
@throws 메소드에서의 예외
@version 클래스의 버전

${} 내용설명

data : 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 (현재 연도)


728x90
728x90

'Programming > 환경셋팅' 카테고리의 다른 글

chkconfig 등록 / 설정 / 활용  (0) 2016.03.30
wget 설치방법  (0) 2016.03.29
intellij lombok 적용  (0) 2015.11.25
톰캣에서 Multiple Instance띄우기.  (0) 2013.07.04
Eclipse 단축키 확인 및 변경  (0) 2011.11.07
Buy me a coffeeBuy me a coffee

댓글