이클립스로 개발시 파일 및 함수에 주석을 달아 파일 이력 정보를 관리할 필요성이 있다.


환경설정 -> java -> code style -> code templates -> comments에서 아래와 같이 설정 할 수 있다.


1.types


/**

 * 

 * @since ${date}

 * @author ${user}

 * <PRE>

 * ------------------------ 

 * 개정이력

 * ${date} ${user} : 최초작성

 * </PRE>

 */



2. methods 


/**

 * 

 * @since ${date}

 * @author ${user} 

 * ${tags}

 */


3. overriding methods


/**

 * 

 * @since ${date}

 * @author ${user} 

 * ${tags}

 * ${see_to_overridden}

 */


4. delegate methods


/**

 * 

 * @since ${date}

 * @author ${user} 

 * ${tags}

 * ${see_to_target}

 */


5. 나머지

내용 : 삭제



6. eclipse.ini 에 user name 추가 하면 위에 author에 user에 바인딩이 됨.

-Duser.name=홍길동


마지막으로 아래 체크되어 있는 automcatically 블라블라를 체크하면 파일 자동생성을 할 수 있다.


+ Recent posts