Sublime Text

Table of Contents

SublimeText 软链接

sudo ln -s /Applications/SublimeText.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

sublimeText3 设置自动换行

  • 打开视图菜单
  • 启动Sublime Text 3应用程序。在菜单栏中,点击“View(视图)”选项。
  • 勾选自动换行选项
  • 在“View”菜单中,找到“Word Wrap(自动换行)”选项。点击这个选项,使其前面出现一个勾选标记。这样,当文本内容到达窗口边缘时,就会自动换行显示。

sublimeText3

  • Package Control.sublime-package
  • channel_v3.json

如何安装 Package Control(离线安装)

  • 点击st3里面的菜单 “Preferences > Browse Packages” 或者 “首选项 > 浏览插件目录”
  • 此时你所在的目录是 “Sublime Text 3/Packages”,进入到 “Sublime Text 3/Installed Packages”
  • 下载 Package Control插件包,将该插件包复制到 "Installed Packages/" 目录内
  • 重启 Sublime Text

Package Control 配置 channel_v3.json (本地使用)

  • 下载 channel_v3.json 到本地 /path/xxx/channel_v3.json
  • 点击 Preferences > Package Settings > Package Control > Settings - User
{
    "bootstrapped": true,
    "channels":
    [
        "/path/xxx/channel_v3.json"
    ],
    "in_process_packages":
    [
    ],
    "installed_packages":
    [
        "BracketHighlighter",
        "Git",
        "MarkdownEditing",
        "Package Control",
        "Pretty JSON",
        "rainbow_csv",
        "SqlBeautifier",
        "Tabnine"
    ]
}
  • 添加 "channels": ["/path/xxx/channel_v3.json"],

channel_v3.json(在线使用)

常用配置 settings-user

  • 点击 Preferences > Settings > Settings - User
{
    "auto_complete": true,
    "auto_complete_triggers":
    [
        {
            "characters": ".(){}[],'\"=<>/\\+-|&*%=$#@! ",
            "selector": "source.python"
        },
        {
            "characters": ":.(){}[],'\"=<>/\\+-|&*%=$#@! ",
            "selector": "source & - source.python - constant.numeric"
        },
        {
            "characters": " qazwsxedcrfvtgbyhnujmikolpQAZWSXEDCRFVTGBYHNUJMIKOLP",
            "selector": "text"
        }
    ],
    "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
    "dictionary": "Packages/Language - English/en_US.dic",
    "dpi_scale": 1.0,
    "file_exclude_patterns":
    [
        "*.pyc",
        "*.pyo",
        "*.exe",
        "*.dll",
        "*.obj",
        "*.o",
        "*.a",
        "*.lib",
        "*.so",
        "*.dylib",
        "*.ncb",
        "*.sdf",
        "*.suo",
        "*.pdb",
        "*.idb",
        ".DS_Store",
        "*.class",
        "*.psd",
        "*.db",
        "*.sublime-workspace",
        "*.iml",
        "*.zip"
    ],
    "folder_exclude_patterns":
    [
        ".svn",
        ".git",
        ".hg",
        "target",
        "CVS",
        ".idea",
        ".vscode"
    ],
    "font_size": 18,
    "ignored_packages":
    [
        "Vintage"
    ],
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "preview_on_click": false,
    "save_on_focus_lost": true,
    "show_full_path": true,
    "tab_size": 2,
    "theme": "Default.sublime-theme",
    "update_check": false,
    "word_wrap": true
}

按键绑定 keyBinding

  • 点击 Preferences > Settings > Key Bindings - User

#+BEGIN_SRC json

[
{
"keys": [
"super+\\"
],
"command": "reveal_in_side_bar"
},
{
"keys": [
"super+e"
],
"command": "open_dir",
"args": {
"dir": "$file_path",
"file": "$file_name"
}
},
{
"keys": [
"super+shift+c"
],
"command": "copy_path"
},
{
"keys": [
"super+ctrl+f"
],
"command": "reindent"
},
{
"keys": [
"super+."
],
"command": "goto_definition"
},
{
"keys": [
"ctrl+super+."
],
"command": "goto_reference"
},
{
"keys": [
"ctrl+shift+s"
],
"command": "auto_save"
}
]

#+END_SRCf

资源

问题

Date: 2019-12-25 09:20:56