Sublime Text 3 Settings

2017-08-07 10:10  3169人阅读  评论 (0)
Tags: sublime

Settings

{
  "default_encoding": "UTF-8",
  "default_line_ending": "unix",
  "folder_exclude_patterns":
  [
    "node_modules"
  ],
  "font_face": "Microsoft YaHei Mono",
  "font_size": 16,
  "ignored_packages":
  [
    "Vintage"
  ],
  "show_encoding": true,
  "show_line_endings": true,
  "tab_size": 2,
  "translate_spaces_to_tabs": false,
  "translate_tabs_to_spaces": true,
  "word_wrap": false
}

Key Bindings

[
  {"keys": ["ctrl+k", "ctrl+o"], "command": "set_setting", "args": {"setting": "tab_size", "value": 2}},
  {"keys": ["ctrl+k", "ctrl+p"], "command": "set_setting", "args": {"setting": "tab_size", "value": 4}},
  {"keys": ["ctrl+k", "ctrl+i"], "command": "unexpand_tabs", "args": {"set_translate_tabs": true}},
  {"keys": ["ctrl+k", "ctrl+m"], "command": "expand_tabs", "args": {"set_translate_tabs": true}},
  {"keys": ["ctrl+k", "ctrl+n"], "command": "toggle_setting", "args": {"setting": "word_wrap"}},
  {"keys": ["ctrl+k", "ctrl+j"], "command": "set_line_ending", "args": {"type": "unix"}},
  {"keys": ["ctrl+k", "ctrl+h"], "command": "save", "args": {"encoding": "utf-8"}},
  {
    "keys": [
      "ctrl+e"
    ], 
    "args": {
      "action": "expand_abbreviation"
    }, 
    "command": "run_emmet_action", 
    "context": [
      {
        "key": "emmet_action_enabled.expand_abbreviation"
      }
    ]
  }
]
ctrl+k ctrl+o 缩进大小: 2
ctrl+k ctrl+p 缩进大小: 4
ctrl+k ctrl+i 将空格转换为tab
ctrl+k ctrl+m 将tab转换为空格
ctrl+k ctrl+n 开启自动换行
ctrl+k ctrl+j 使用unix换行
ctrl+k ctrl+h 将编码设置为utf-8

查看命令

sublime.log_commands(True)
sublime.log_commands(False)

参考地址: http://www.sublimetext.com/docs/commands

.EditofConfig

root = true

[*]
charset = utf-8
tab_width = 4
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
豫ICP备09035262号-1