Daimon Blog

山在那里

Sublime Cheatsheet

我用的sublime配置。尽可能与pycharm / mac的操作习惯一致。

常用插件

  • sublimeGit
  • terminal
  • ConvertToUTF8
  • MarkdownTableFormatter(推荐用我改过的。支持中文排版)
  • Package Reloader (方便调试package)

快捷键配置

[
  { "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
  { "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
  { "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
  { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
  { "keys": ["super+shift+up"], "command": "swap_line_up" }, 
  { "keys": ["super+shift+down"], "command": "swap_line_down" },
]

有些 command 不知道怎么写,可以打开命令日志

ctrl + `
sublime.log_commands(True)

看到命令之后,再关掉命令日志

配置

terminal配置用iterm打开终端

  1. 下载iterm3.sh

    # Download Sublime Terminal's iTerm2-v3.sh
    mkdir ~/bin
    cd ~/bin
    wget https://raw.githubusercontent.com/wbond/sublime_terminal/1.16.2/iTerm2-v3.sh
    # Enable script as an executable
    chmod +x iTerm2-v3.sh
  2. 配置sublime - terminal

    {
      "terminal": "/Users/daijian/bin/iTerm2-v3.sh",
      "parameters": ["--open-in-tab"],
      "env": {}
    }

文章分类目录