設置Myeclipse中的代碼格式化、及保存時自動格式化


1.保存時自動格式化代碼:

打開eclipse/myeclipse 選擇 window-->Preferences-->JAVA-->Editor-->Save Actions 右邊選中:

Perform the selected actions on save

       Format source code

          Format all lines

      Organize imports

保存后重啟Myeclipse即可。

 

2.在jsp、xml、html中格式化代碼

右擊--->Sourse-->Format  即可,

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM