eclipse format length

自動分行的字元長度設定:
java
Preferences -> Java -> Code Style -> Formatter / Edit -> Line wrapping -> Maximum line width

html(include html and jsp)
Preferences -> Web -> HTML Files -> Editor -> Line width

xml
Preferences > XML > XML Files > Editor > Line width


不要自動合併行設定:
java
Preferences -> Java -> Code Style -> Formatter / Edit -> Line wrapping -> Never join already wrapped lines

html(include html and jsp)
Preferences -> Web -> HTML Files -> Editor -> in line elements -> 移除不要併行的tag

xml
Preferences > XML > XML Files > Editor > 取消 join lines

留言

這個網誌中的熱門文章

Java Servlet MVC web app

JavaMail透過Gmail寄信發生AuthenticationFailedException錯誤