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"
        }
    }
}
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值