1. 程式人生 > >一款sublime很棒的程式碼格式化外掛

一款sublime很棒的程式碼格式化外掛

適用於ST2、ST3,支援程式碼型別:

  • PHP - By phpfmt
  • JavaScript/JSON - By JSBeautifier
  • HTML - By JSBeautifier
  • CSS - By JSBeautifier
  • SCSS - By Nishutosh Sharma
  • Python - By PythonTidy (only ST2)
  • Visual Basic/VBScript
  • Coldfusion/Railo/Lucee

增加對Java程式碼的支援

Packages\sublimetext-codeformatter下開啟檔案CodeFormatter.sublime-settings

,找到codeformatter_js_options,在syntaxes欄位中加入java,建議將preserve_newlinesformat_on_save改為true。現在可以試試啦。