在Eclipse里設置格式化代碼時不格式化注釋
今天格式化代碼 發現直接format會把注釋也一塊格式化了,有時候會把好好的注釋弄的很亂。甚為頭疼。
查閱之后解決辦法如下:
Windows -> Preferces -> java -> Code Style –> Formatter 或者搜索Formatter
編輯Edit 進入Comments選項卡
取消勾選“Enable Javadoc comment formatting”.
搞定。以后就不會格式化注釋了。
來源:http://www.zhanghenglei.com/code/java/465.html
