Sublime Text3自用设置及快捷键

发布时间:2020-07-28 12:13:31 作者:LeslieLiang
来源:网络 阅读:636

用户设置

{
    "color_scheme": "Packages/Color Scheme - Legacy/Monokai Bright.tmTheme",
    "command": "auto_indent_tag",
    "context":
    [
        {
            "key": "setting.auto_indent",
            "operand": true,
            "operator": "equal"
        },
        {
            "key": "selection_empty",
            "match_all": true,
            "operand": true,
            "operator": "equal"
        },
        {
            "key": "selector",
            "match_all": true,
            "operand": "punctuation.definition.tag.begin",
            "operator": "equal"
        },
        {
            "key": "preceding_text",
            "match_all": true,
            "operand": ">$",
            "operator": "regex_contains"
        },
        {
            "key": "following_text",
            "match_all": true,
            "operand": "^</",
            "operator": "regex_contains"
        }
    ],
    "default_enconding": "UTF-8",
    "font_face": "liang v2",
    "font_size": 16,
    "highlight_line": true,
    "ignored_packages":
    [
        "SideBarEnhancements",
        "Vintage"
    ],
    "keys":
    [
        "enter"
    ],
    "tab_size": 4,
    "theme": "Boxy Monokai.sublime-theme",
    "translate_tabs_to_spaces": true,
    "update_check": false,
    "word_wrap": false
}

快捷键设置

[
    { "keys": ["enter"], "command": "auto_indent_tag", "context":
            [
                { "key": "setting.auto_indent", "operator": "equal", "operand": true },
                { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
                { "key": "selector", "operator": "equal", "operand": "punctuation.definition.tag.begin", "match_all": true },
                { "key": "preceding_text", "operator": "regex_contains", "operand": ">$", "match_all": true },
                { "key": "following_text", "operator": "regex_contains", "operand": "^</", "match_all": true },
            ]
    },
    {   //python
        "keys": ["f5"],
        "caption": "SublimeREPL: Python - RUN current file",
        "command": "run_existing_window_command",
        "args":
        {
            "id": "repl_python_run",
            "file": "config/Python/Main.sublime-menu",
        },
    },
    {   //删除当前行
        "keys" : ["ctrl+d"],
        "command" : "run_macro_file",
        "args" : {
            "file" : "res://Packages/Default/Delete Line.sublime-macro",
        }
    },
    {   //复制当前行
        "keys": ["ctrl+alt+down"],
        "command": "duplicate_line",
    },
    {   //向上移动当前行
        "keys": ["alt+up"],
        "command": "swap_line_up"
    },
    {   //向上移动当前行
        "keys": ["alt+down"],
        "command": "swap_line_down"
    },

]
推荐阅读:
  1. golang怎么用sublime text3作为IDE进行配置
  2. go语言环境搭建+sublime text3(windows环境下)

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

sublime 快捷

上一篇:接口自动化测试学习的是什么

下一篇:android studio导入eclipse工程的方法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》