mac sublime 配置c++ 做个笔记给以后的自己

c++ 格式化代码

cool format:进入formatter setting 修改配置

; Please visit http://akof1314.github.io/CoolFormat/doc/index.html for more information
[SynTidy]
C++=""-A2-p-N-Y-o-T-N-k3"" 
Java=""-A1-p-N-Y-k3""
C#=""-A1-p-N-Y-k3""
Objective-C=""-A1-p-N-Y-k3""
HTML=""-aan-dep-fb-fbc-fu-js-ll-n-ox-pe-qa-qn-m-wa-wj-wp-ws-sw-fo-i0-d1-ce0-ie0-oe0-w0-sbo0""
XML=""-aan-dep-fb-fbc-js-ll-n-ix-qa-qn-m-wa-wj-wp-ws-sw-fo-i1-ce0-ie0-oe0-w0""
PHP=""-sas-icd-samt-salo-saeo-saro-sabo-saao-samp-aas-rsl-iel-rpc-rst-st""
JavaScript=""-nb-cn4""
CSS=""-c2-rub-cl0-os1-cc-cf-cfp0-rs2""
JSON=""-cn3""
SQL=""-cn2-el-ml0""

修改keybings

[
    {  
        "keys": ["ctrl+q"], "command": "coolformat", "args": {"action": "quickFormat"}  
    },  
    {  
        "keys": ["ctrl+alt+shift+s"], "command": "coolformat", "args": {"action": "selectedFormat"}  
    }  
]

取消更新

settings user 添加

"update_check":false

主题选择

魔力主题
https://github.com/equinusocio/material-theme

高亮匹配

BracketHighlighter

修改bracket settings 现复制default 然后修改里面的东西,改highlighter

  "bracket_styles": {
        // "default" and "unmatched" styles are special
        // styles. If they are not defined here,
        // they will be generated internally with
        // internal defaults.

        // "default" style defines attributes that
        // will be used for any style that does not
        // explicitly define that attribute.  So if
        // a style does not define a color, it will
        // use the color from the "default" style.
        "default": {
            "icon": "dot",
            // BH1's original default color for reference
            // "color": "entity.name.class",
            "color": "brackethighlighter.default",
            "style": "thin_underline"
        },

        // This particular style is used to highlight
        // unmatched bracket pairs.  It is a special
        // style.
        "unmatched": {
            "icon": "question",
             "color": "brackethighlighter.unmatched",
            "style": "hightlight"
        },
        // User defined region styles
        "curly": {
            "icon": "curly_bracket",
             "color": "brackethighlighter.curly",
             "style": "hightlight"
        },
        "round": {
            "icon": "round_bracket",
             "color": "brackethighlighter.round",
             "style": "hightlight"
        },
        "square": {
            "icon": "square_bracket",
             "color": "brackethighlighter.square",
             "style": "hightlight"
        },
        "angle": {
            "icon": "angle_bracket",
             "color": "brackethighlighter.angle",
             "style": "hightlight"
        },
        "tag": {
            "icon": "tag",
             "color": "brackethighlighter.tag",
             "style": "hightlight"
        },
        "c_define": {
            "icon": "hash",
             "color": "brackethighlighter.c_define",
            "style": "hightlight"
        },
        "single_quote": {
            "icon": "single_quote",
             "color": "brackethighlighter.quote",
             "style": "hightlight"
        },
        "double_quote": {
            "icon": "double_quote",
             "color": "brackethighlighter.quote",
             "style": "hightlight"
        },
        "regex": {
            "icon": "regex",
             "color": "brackethighlighter.quote",
             "style": "hightlight"
        }
    }
}

你可能感兴趣的:(什么都不是)