BracketHighlighter括号高亮配置

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值