반응형
그냥 키보드로 직접 주석을 추가하려면 귀찮기도 하고 힘도 들기도 합니다.
그래서 이클립스는 주석을 단축키로 바로 생성해 주는 기능이 있습니다.
Alt + Shift + J를 누르면 아래처럼 주석이 생깁니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 어떠한 메소드입니다. | |
*/ | |
Public void somethingmethod() { | |
} |
만약 리턴/인수 등등이 있다면 자동으로 알아서 생성해 줍니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 문자열을 합쳐줍니다. | |
* @param s | |
* @param ss | |
* @return sss | |
*/ | |
Public void mergeString(String s, String ss) { | |
return s+ss+""; | |
} |
반응형