ST插件--HTML-CSS-JS Prettify

来源:互联网 发布:能飞背单词软件 编辑:程序博客网 时间:2024/05/16 01:33

HTML-CSS-JS Prettify:格式化代码插件


使用此插件需要安装node.js;并牢记安装路径,全选右键选择格式化后会跳出node_path配置,将路径设置为如下代码就可以了。

{
  "node_path": {
    "windows": "D:\\Program Files\\nodejs\\node.exe",
    "linux": "/usr/bin/nodejs",
    "osx": "/usr/local/bin/node"
  },
  "format_on_save": false,
  "format_selection_only": true,
  "print_diagnostics": true
}

注意的是:路径需要用\转义

0 0
原创粉丝点击