mac sublime HTMLBeautify

打开package control 或者直接快捷键command+shift+p


image.png

去到install package


image.png

搜索HTMLBeautify, 点击自动安装,因为本地已经安装了,所以没有显示


image.png

设置快捷键
1.查看default


image.png

打开之后长这个样子


image.png

下面是官方对每个参数定义的解释,可以自己更改
image.png

2.自定义快捷键

进入key bindings


image.png

会打开两个文件:default & user, 在user里改
粘上这一段,“keys”是你自己想设置的快捷键
{
"keys": ["ctrl+f"], // create your own key command combination here!
"command": "html_beautify", // command that executes html_beautify
"context": [{
// these options ensure that the command is executed in the right files/context
"key": "selector",
"operator": "equal",

"operand": "text.html,text.html.twig,text.twig,source.html,source.html.twig,source.twig"
}]
}
okay,结束,去试下吧

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容