BracketHighlighter括号高亮配置

匿名 (未验证) 提交于 2019-12-03 00:05:01

BracketHighlighter
BracketHighlighter是一个用于成对括号(大括号、中括号、圆括号、尖括号)、引号等符号的高亮显示的插件

插件安装
首先打开package Control,选择install Package,之后输入BracketHighlighter,点击就可以了。

在安装完成之后,默认是这样显示的

默认其实已经比较好看了,但是还是不够好,按照下面的设置看看吧

点击Preference -> Package setting -> BracketHighlighter -> Bracket setting

把下面的复制粘贴到右边的用户设置中去

{
// 这个是在成对的括号左侧显示一条竖线,表明开闭括号的范围与位置,如果不需要把true改为false
“content_highlight_bar”: true,
// 下面不同括号的显示方式,默认是下划线,这里改成了高亮
“bracket_styles”: {
“default”: {
“icon”: “dot”,
“color”: “region.yellowish brackethighlighter.default”,
“style”: “highlight”
},
“unmatched”: {
“icon”: “question”,
“color”: “region.redish”,
“style”: “outline”
},
“curly”: {
“icon”: “curly_bracket”,
“color”: “region.purplish”
// “style”: “underline”
},
“round”: {
“icon”: “round_bracket”,
“color”: “region.yellowish”
// “style”: “underline”
},
“square”: {
“icon”: “square_bracket”,
“color”: “region.bluish”
// “style”: “underline”
},
“angle”: {
“icon”: “angle_bracket”,
“color”: “region.orangish”
// “style”: “underline”
},
“tag”: {
“icon”: “tag”,
“color”: “region.orangish”
// “style”: “underline”
},
“c_define”: {
“icon”: “hash”,
“color”: “region.yellowish”
// “style”: “underline”
},
“single_quote”: {
“icon”: “single_quote”,
“color”: “region.greenish”
// “style”: “underline”
},
“double_quote”: {
“icon”: “double_quote”,
“color”: “region.greenish”
// “style”: “underline”
},
“regex”: {
“icon”: “star”,
“color”: “region.greenish”
// “style”: “underline”
}
},
// 忽视限制因素,但是当代码较多的时候可能会影响性能
“ignore_threshold”: true,
}
显示效果为

设置后.PNG

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!