安装格式化插件
1、效果
1.1、格式化前
1.2、格式化后
2、安装步骤
2.1、快捷键:ctrl+shift+p 输入Install Package,选中回车
2.2、右下角,等待加载完成
2.3、自动会弹出,弹框中输入:HTML-CSS-JS Prettify,回车
2.4、安装成功后,指定node的路径
查看本地安装的NodeJS配置环境路径(在dos命令下,输入where node并回车)
快捷方式:window+r,输入com然后回车
输入:where node
2.5、在编辑器任意html、css、js文件中,右击,出现如下图所示,选中Plugin Options Default
2.6、将上述查找出的地址复制到文件中(windows的值中)
至此,成功安装HTML-CSS-JS Prettify插件
3、使用
3.1、在编辑器任意html、css、js文件中,右击,出现如下图所示,选中Prettify Code就可以格式化成功了
声明:此博客为个人学习之用,如与其他作品雷同,纯属巧合,并请明示指出