sublime安装说明

Sublime Text中文乱码问题

https://www.cnblogs.com/lixuwu/p/5693624.html

常用配置

Perference → Settings – User,用下述配置覆盖打开的配置文件里。

{
    // Display file encoding in the status bar
    "show_encoding": true,
    // Display line endings in the status bar
    "show_line_endings": true,
    "font_size": 13,
    "ignored_packages":
    [
        "Vintage"
    ]
}

持续更新。。。

sublime ctags插件安装

主要用来解决在sublime中C++函数或者宏定义无法跳转的问题。

ctags插件安装说明地址:https://blog.csdn.net/lijing198997/article/details/47724749

"command": "D:/software/sublime/ctags58/ctags.exe",

要注意配置文件中command是否存在错误

在使用ctag rebuild时候报乱码错误,是因为ctga的 user配置文件缺失,或者上面的路径安装不正确 

sublime函数和类追踪

打开 Preferences -> Package Settings -> CTags -> Mouse Bindings-User 里输入下列代码:

[
    {
        "button": "button1",
        "count": 1,
        "press_command": "drag_select",
        "modifiers": ["ctrl"],
        "command": "navigate_to_definition"
    },
    {
        "button": "button2",
        "count": 1,
        "modifiers": ["ctrl"],
        "command": "jump_prev"
    }
]

ctrl+鼠标左键跟踪,ctrl+鼠标右键回退

中文汉化

preferens——package controller——输入 install package——等待安装完成后输入 localizations

请使用主菜单的 帮助/Language 子菜单来切换语言。 目前支持 简体中文 繁体中文 日本語 德语 法语 俄语等。 
要换回英语不需要卸载本插件,请直接从菜单切换英文。

 设置默认字体大小

https://blog.csdn.net/csdn_chenli/article/details/68060943

定位文件到左侧的目录结构

ctrl+shift+p,安装SyncedSideBar插件。

 sublime节点匹配,括号高亮显示BracketHighlighter

https://blog.csdn.net/qq_31772441/article/details/80389923

配置文件

{
    // Experimental: Creates a visible bar at the beginning of all lines between
    // multiline bracket spans.
    "content_highlight_bar": true,

    // Character threshold to search
    "search_threshold": 10000,

    "bracket_styles": {
        "default": {
            "icon": "dot",
            // Support the old convention of "brackethighlighter.default"
            // for themes that already provide something.
            // As this has always been the only one we've provided
            // by default, all the others will use region-ish colors.
            "color": "region.yellowish brackethighlighter.default",
            "style": "underline"
        },

        // This particular style is used to highlight
        // unmatched bracket pairs.  It is a special
        // style.
        "unmatched": {
            "icon": "question",
            "color": "region.redish",
            "style": "highlight"
        },
        // User defined region styles
        "curly": {
            "icon": "curly_bracket",
            "color": "region.purplish",
            "style": "outline"
        },
        "round": {
            "icon": "round_bracket",
            "color": "region.yellowish",
            "style": "outline"
        },
        "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"
        }
    }
}
原文地址:https://www.cnblogs.com/lixuwu/p/9459288.html