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
    评论
根据你提供的引用内容,配置Sublime Text的C++环境可以按照以下步骤进行操作: 1. 打开Sublime Text,点击菜单栏的 "工具",然后选择 "编译系统",再选择 "新建编译系统"。\[1\] 2. 将引用\[1\]中提供的代码全部复制,并替换掉原来的内容。 3. 保存文件,可以将文件名命名为 "CPP.sublime-build" 或其他你喜欢的名称。 4. 安装MinGW编译器,可以通过MinGW Installation Manager进行安装。\[2\] 5. 在MinGW Installation Manager中,选择 "mingw32-base" 和 "mingw-gcc-g++",并标记为安装。 6. 在菜单栏的 "Installation" 中选择 "Apply Changes",然后在弹出的界面中点击 "Apply",等待下载完成。 7. 下载完成后,点击 "Close" 退出。 8. 添加环境变量,以Windows 11为例,可以按照系统设置中的环境变量设置方法进行操作。\[3\] 以上是配置Sublime Text的C++环境的步骤,你可以根据这些步骤进行操作。希望对你有帮助! #### 引用[.reference_title] - *1* *3* [sublime搭建C/C++编译环境(超完美的配置并配上内容详细讲解!!)](https://blog.csdn.net/a19990412/article/details/82658981)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Sublime Text 搭建 C++ 环境](https://blog.csdn.net/qq_34010538/article/details/122630932)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值