Sublime Text:插件HTML-CSS-JS Prettify可以格式化HMTL/CSS/JS

1.安装Node.js

2.Sublime中ctrl+shift+p,输入ip:

3.点击Install Package,然后搜索HTML-CSS-JS Prettify,按确定

4.安装完之后不能正常使用,需要设置一下路径,右击页面多了一个HTML/CSS/JS Prettiy的选项,设置一下Node路径:

5、设置如下,根据自己的操作系统改下Node的安装路径

{
// Simply using `node` without specifying a path sometimes doesn't work :(
// https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
// http://nodejs.org/#download
"node_path": {
"windows": "D:/Program Files/nodejs/node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node"
}, // Automatically format when a file is saved.
"format_on_save": false, // Only format the selection if there's one available.
"format_selection_only": true, // Log the settings passed to the prettifier from `.jsbeautifyrc`.
"print_diagnostics": true
}

6、使用快捷键为:Ctrl+Shift+H

相关文章:

sublime package control 安装

最新文章

  1. backup daily
  2. Ubuntu下中文显示乱码
  3. TAROT.
  4. Remote Desktop manager 连接后无法自动登录
  5. SQL Server查询优化方法(查询速度慢的原因很多,常见如下几种) .
  6. POJ3485 区间问题
  7. HDU2028JAVA
  8. 设置表格td超出内容后截取并以...显示
  9. CentOS(Linux) - SVN使用笔记(一) - 安装SVN过程及开启和关闭svn服务指令
  10. Mysql 细节记忆
  11. js页面loading加载
  12. SQL Server 中截取字符串常用的函数
  13. 在ubuntu14.04上安装mono4.4 + jexus + mvc6
  14. OJ:一道考察多态的题目
  15. spring整合redis-----ShardedJedisPool实现
  16. 一步一步详解ID3和C4.5的C++实现
  17. 【转】你必须知道的EF知识和经验
  18. L309 单音节词读音规则(一)-辅音字母发音规则
  19. Oracle联合查询
  20. ionic 配置打包环境

热门文章

  1. jupyter、flask、tornado、djiango安装
  2. python基础===取txt文件的若干行到另一个文件
  3. Linux内核学习之中断 中断本质【转】
  4. postgresql数据库备份和恢复(超快)
  5. python反爬之动态字体相关文档
  6. 安装并解决purcell/emacs.d网络问题
  7. CSS中的HSLA颜色
  8. laravel将数据库对象转为数组的方法
  9. MySQL数据库中的Date,DateTime,int,TimeStamp和Time类型的对比
  10. [BZOJ4006][JLOI2015]管道连接 状压dp+斯坦纳树