Sublime Text 3 Settings

2017-08-07 10:10  821人阅读  评论 (0)
Tags: php

Settings

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

Key Bindings

[
    {"keys": ["ctrl+k", "ctrl+y"], "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}},
    {"keys": ["ctrl+k", "ctrl+i"], "command": "set_setting", "args": {"setting": "tab_size", "value": 2}},
    {"keys": ["ctrl+k", "ctrl+o"], "command": "set_setting", "args": {"setting": "tab_size", "value": 4}},
    {"keys": ["ctrl+k", "ctrl+m"], "command": "unexpand_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"}}
]

切换设置: 空格和tab
缩进大小: 2
缩进大小: 4
将空格转换为tab
切换自动换行
使用unix换行
保存: 编码为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