1、到官网下载安装包

http://www.sublimetext.com/3

2、附注册码一枚

Sublime Text 3 3126

3、主题

Soda Theme,安装方法:http://buymeasoda.github.io/soda-theme/

另外,作者还提供了一套 Color Scheme,即 Syntax highlighting colour schemes,下载地址

4、个性化设置

1) 解决 sublime text 总是在新窗口中打开文件的问题,在 Preferences -> Settings –> User 中增加参数

"open_files_in_new_window": false

2) 自动保存,在 Preferences -> Settings –> User 中增加参数

"save_on_focus_lost": true,
"atomic_save": true,

3) 保存时去掉行末空格,在 Preferences -> Settings –> User 中增加参数

"trim_trailing_white_space_on_save": true

4) 显示 空格、Tab字符

"draw_white_space": "all"

用户设置 备份如下:

{
"color_scheme": "Packages/User/Espresso Soda.tmTheme",
"soda_classic_tabs": true,
"theme": "Soda Light 3.sublime-theme", "font_face": "YaHei Consolas Hybrid",
"font_size": 14,
"open_files_in_new_window": false,
"save_on_focus_lost": true,
"atomic_save": true,
"trim_trailing_white_space_on_save": true,
"draw_white_space": "all",
"auto_close_tags": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"update_check": false
}

5) 如何隐藏右边的 预览栏 ?

View -> Hide MiniMap

6) 修改快捷键

在 Preferences -> Key Bindings -> 填入内容

// 按住 “control + alt + 向下键” 复制单行

[
{ "keys": ["control+alt+down"], "command": "duplicate_line" }
]
04-14 18:04