Mac Pro 安装 Sublime Text 3,个性化设置,主题 和 插件 收藏

1、到官网下载安装包

http://www.sublimetext.com/3

2、附注册码一枚

Sublime Text 3 3126

—– BEGIN LICENSE —–
Alexey Plutalov
Single User License
EA7E-860776
3DC19CC1 134CDF23 504DC871 2DE5CE55
585DC8A6 253BB0D9 637C87A2 D8D0BA85
AAE574AD BA7D6DA9 2B9773F2 324C5DEF
17830A4E FBCF9D1D 182406E9 F883EA87
E585BBA1 2538C270 E2E857C2 194283CA
7234FF9E D0392F93 1D16E021 F1914917
63909E12 203C0169 3F08FFC8 86D06EA8
73DDAEF0 AC559F30 A6A67947 B60104C6
—— END LICENSE ——

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" }
]
原文地址:https://www.cnblogs.com/52php/p/6103629.html