BracketHighlighter - 括号高亮插件配置

2019-02-13  本文已影响2人  白菜代码小推车

BracketHighlighter

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

插件安装

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

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


设置前.PNG

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

点击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"
        }
    }
}

显示效果为

设置后.PNG

参考

上一篇下一篇

猜你喜欢

热点阅读