[이클립스] 이클립스 Formatter - 줄맞춤 정리
이클립스 Formatter - 줄맞춤 정리
1.General
General > Editors > Text Editors
--> Disolayed tab width : 2
--> Insert spaces for tabs 체크
2.Java,JavaScript
Java > Code Style > Formatter
--> 첨부한 java_formatter.xml를 Import하면 됩니다.
JavaScript > Code Style > Formatter
--> 첨부한 javascript_formatter.xml를 Import하면 됩니다.
3.Web
Web > CSS Files > Editor
--> Line width : 999
--> Indent using spaces 체크 : Size 2
4.Web
Web > HTML Files > Editor
--> Align final bracket in multi-line element tags 체크
--> Clear all blank lines 체크
--> Line width : 999
--> Indent using spaces 체크 : Size 2
5.XML
XML > XML Files > Editor
--> Align final bracket in multi-line element tags 체크
--> Clear all blank lines 체크
--> Line width : 999
--> Indent using spaces 체크 : Size 2
※ 이클립스에서 기본 단축키로 자동정렬은 Ctrl+Shift+F 를 누르시면 자동 정렬 됩니다.
JSP는 HTML,JavaScript코드만 정렬되고 스크립트릿(자바코드 실행 블록)에
자바코드는 정렬 되지 않습니다. 필요하다면 정렬후 스크립트릿을 삽입하면 될거 같습니다.