关于sublime代码格式化

就我接触到的,html,css,js,json,php语言来介绍。

html,css,json,js这些,我感觉pretty是比较好用的,ctrl+shift+h快捷键,给人不一样的感受,不过这个插件是不需要nodejs扩展的,根据你的环境配置nodejs扩展把。

关于php,sublime环境直到现在依旧没有解决!取而代之的是editplus+phpcb配置,我只能说,握了个草。

下面是editplus+phpcb配置,希望能有些帮助。下载地址http://pan.baidu.com/s/1pJ43VmV

整合PHPCB到EditPlus: 
EidtPlus:工具》配置用户工具(我的editplus是自定义工具)…》添加工具: 
菜单文本:PHPCB 
命令:浏览到PHPCB程序。 
参数:--space-after-if --optimize-eol --space-after-switch --space-after-while --space-before-start-angle-bracket --space-after-end-angle-bracket --extra-padding-for-case-statement --glue-amperscore --change-shell-comment-to-double-slashes-comment --indent-with-tab --force-large-php-code-tag --force-true-false-null-contant-lowercase --comment-rendering-style PEAR --equal-align-position 50 --padding-char-count 1 "$(FilePath)" 
初始目录:$(FileDir) 
打勾:“以文本筛选器运行”,下拉选择“替换” 
“应用”按钮。 

php格式化代码的就是phpCB最强大了 
虽然eclipse有自带的ctrl+shift+f格式化代码可惜偶用不了 
TNND的没有办法只能找国外的格式化工具了 
刚拿到用phpCB test.php > index.php这样格式化就OK了 挺不错 
但是用命令行去操作真的是很不舒服!~本人喜欢用editpus编辑工具嘿嘿 所以就把它集成到editplus里面了 
操作也就那样添加即可 截个图当说明吧
截图:
原文地址:https://www.cnblogs.com/liuwenbohhh/p/4689768.html