Sublime Text:格式化插件HTML-CSS-JS Prettify
2024-08-24 00:42:24
Sublime Text:插件HTML-CSS-JS Prettify可以格式化HMTL/CSS/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
相关文章:
最新文章
- backup daily
- Ubuntu下中文显示乱码
- TAROT.
- Remote Desktop manager 连接后无法自动登录
- SQL Server查询优化方法(查询速度慢的原因很多,常见如下几种) .
- POJ3485 区间问题
- HDU2028JAVA
- 设置表格td超出内容后截取并以...显示
- CentOS(Linux) - SVN使用笔记(一) - 安装SVN过程及开启和关闭svn服务指令
- Mysql 细节记忆
- js页面loading加载
- SQL Server 中截取字符串常用的函数
- 在ubuntu14.04上安装mono4.4 + jexus + mvc6
- OJ:一道考察多态的题目
- spring整合redis-----ShardedJedisPool实现
- 一步一步详解ID3和C4.5的C++实现
- 【转】你必须知道的EF知识和经验
- L309 单音节词读音规则(一)-辅音字母发音规则
- Oracle联合查询
- ionic 配置打包环境
热门文章
- jupyter、flask、tornado、djiango安装
- python基础===取txt文件的若干行到另一个文件
- Linux内核学习之中断 中断本质【转】
- postgresql数据库备份和恢复(超快)
- python反爬之动态字体相关文档
- 安装并解决purcell/emacs.d网络问题
- CSS中的HSLA颜色
- laravel将数据库对象转为数组的方法
- MySQL数据库中的Date,DateTime,int,TimeStamp和Time类型的对比
- [BZOJ4006][JLOI2015]管道连接 状压dp+斯坦纳树