Blogger Information
Blog 1
fans 0
comment 0
visits 633
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
​使用Sublime text 3 格式化HTML代码
Wendy的博客
Original
635 people have browsed it

使用Sublime text 3 格式化HTML代码,需要安装插件,具体安装步骤如下:

1、打开菜单->首选项->插件控制,输入 install package

2、等待程序进入插件管理功能,再输入插件名称:TAG

3、点击安装插件html-css-js prettify 。

4、插件安装成功后,在需要格式化的HTML代码中,选中代码,然后按Ctrl+Alt+H对代码进行格式化。


html-css-js prettify 格式化CSS会再每个CSS后面都添加一个换行,取消该换行的方法:


打开:菜单>tools>html/css/js prettify>set prettify preferences

修改设置newline_between_rules的参数为false


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post