博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Sublime Text插件之HTML-CSS-JS Prettify
阅读量:4287 次
发布时间:2019-05-27

本文共 909 字,大约阅读时间需要 3 分钟。

一、Sublime Text插件之HTML-CSS-JS Prettify

说明:如果仅是对HTML、CSS、JS进行格式化显示的话‘HTML-CSS-JS Prettify’插件比‘CodeFormatter’要好一些。

关于CodeFormatter:

注:

1.改插件格式化不是所有的标记都换行,然而在CodeFormatter中是这样

2.改插件格式化时候,对于同一行内多个空格,自动处理成一个空格

html格式化实例:

二、相关整理:

GitHub源代码地址:

Package Control地址:

三、使用步骤

1.下载插件,解压到:根目录/Data/Packages 中

2.配置关联

{  // 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": "C:/Program Files/nodejs/node.exe",    "linux": "/usr/bin/nodejs",    "osx": "/usr/local/bin/node"  },  // Automatically format when a file is saved.  "format_on_save": true,  // 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}

3.配置格式化参数,目前使用感觉使用默认就可以。

更多:

你可能感兴趣的文章
论文笔记|Self-Supervised Test-Time Learning for Reading Comprehension
查看>>
论文笔记|Open-world Learning and Application to Product Classification
查看>>
论文笔记 _ ELECTRA_ Pre-training Text Encoders as Discriminators Rather than Generators
查看>>
【论文笔记】
查看>>
论文笔记:Exploring Pre-trained Language Models for Event Extraction and Generation
查看>>
论文解读 | QANET: COMBINING LOCAL CONVOLUTION WITH GLOBAL SELF-ATTENTION FOR READING COMPREHENSION
查看>>
linux 安装nginx
查看>>
linux 搭建rocketmq集群
查看>>
linux 安装zookeeper集群
查看>>
RocketMq单机安装(Windows)
查看>>
Windows 上安装 MySQL
查看>>
eclipse 的mybatis中mapper.xml文件标签没有提示的解决方法
查看>>
linux 上一主两从mysql集群中某台数据库宕机解决方法
查看>>
大牛面试指南
查看>>
android入门(一)---UI组件之文本框(TextView)
查看>>
演示动画怎么实现的
查看>>
android入门---Activity组件.活动(一)
查看>>
Android入门---GridView组件
查看>>
获取apk文件上的精美图片素材
查看>>
JAVA中文乱码解决方法
查看>>