Sublime Text3自用设置及快捷键

用户设置

{
    "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"
    },

]

原文地址:https://blog.51cto.com/14284354/2403690

时间: 2024-10-08 18:22:37

Sublime Text3自用设置及快捷键的相关文章

sublime text 3设置浏览器快捷键

一.设置默认浏览器 1,打开sublime 依次选择 tools > build system > new build system... 2,选择你喜欢的浏览器,右键 > 属性 把"目标"里的路径复制下来 3,如图把代码里的路径替换成你刚才复制的路径  { "cmd": ["C:/Program Files (x86)/Mozilla Firefox/firefox.exe","$file"],"

设置Sublime Text3修改设置Tab键为4个空格

在sublime text中将TAB缩进直接转化为4个空格,可以按照如下方式操作: 菜单栏: Preferences -> Settings – More -> Syntax Specific – User 然后添加设置代码就可以了 { "tab_size": 4, "translate_tabs_to_spaces": true }

sublime text3中设置Emmet输入标签自动闭合

我们知道 emmet 功能实在过于强大, 强大的我们不忍心甩弃它,但我们在写 html代码的时候会发现,类似 img,link,source,input等标签不会闭合,没有斜杠.下面我们就来看看如何设置,让这个斜杠出现. 工具/原料 方法/步骤 1.打开sublime text 如图所示点击,选择菜单栏里的[settings-default] 2.在里面最下面找到 如图这一段 "syntaxProfiles": { // Enable XHTML dialect for HTML sy

Sublime text3使用技巧及快捷键

一.快速查找文件Crtl+P(Goto->Goto Anyghing) 在打开的搜索框中输入文件名按Enter键即可. 提示:1.支持文件夹+文件名的搜索,比如 "js/main.js".2.搜索框支持模糊匹配 二.快速查找css及js文件中的内容 1.Crtl+P 然后在输入框中输入“@”符号,输入css选择器名称.类名或Id名即可快速查找到相应的css. 2.Crtl+P 然后在输入框中输入“@”符号,输入function名称,即可快速定位到此function的位置. 三.快

Mac Sublime text3 如何设置更加漂亮好用?

说明:配置是根据自己的需求搜索了蛮多博客测试总结的. 显示效果 配置信息: command + , [逗号], 右侧配置信息 { "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", "dictionary": "Packages/Language - English/en_GB.dic", "expand_tabs_on_save&qu

我的sublime text3 配置文件设置

{ "ignored_packages": [ "Vintage" ], //vim模式 "line_padding_bottom": 2, "line_padding_top": 2, //上下行距 "open_files_in_new_window": false, //多窗口 "tab_size": 2, //tab缩进 "translate_tabs_to_spaces

Ubuntu 16.04安装Sublime Text3

1.安装: sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-installer 2.卸载: sudo apt-get remove sublime-text-installer 3.安装扩展包 首先必须安装插件管理器Package Control.打开Sublime Text3,按下快捷键[Ctrl]+[``](左上角第二排第一

Sublime Text3安装SublimeREPL插件以及快捷键设置

SublimeREPL是Sublime Text的一个插件,它除了可以使你在ST中运行解释器(REPL),还有对Python语言的特别支持,包括在本地/远程(远程仅在linux/osx平台可用)virtualenv中启动Python,快速运行选中的代码或者启动PDB等. 本文介绍在windows下Sublime Text3安装SublimeREPL插件以及快捷键设置等. ------------- 1.Package Control *我是建议使用的是直接内置了Package Control的S

Sublime Text3 快捷键汇总及设置快捷键配置环境变量

@Sublime Text3 快捷键汇总及设置快捷键配置环境变量 注册码如下: —– BEGIN LICENSE —– Andrew Weber Single User License EA7E-855605 813A03DD 5E4AD9E6 6C0EEB94 BC99798F 942194A6 02396E98 E62C9979 4BB979FE 91424C9D A45400BF F6747D88 2FB88078 90F5CC94 1CDC92DC 8457107A F151657B 1