Gangmax Blog

自由之思想,独立之精神

Customize Sublime Text

Theme

From here and here.

Press “Cmd + Shift + P”, type “Install Package”, wait several seconds for package list loading, then type “ayu”, you should see the “ayu” theme in the list, select to install.

Press “Cmd + ,” to open preferences, configure the following content into the user settings:

1
2
3
"ui_native_titlebar": true,
"ui_separator": true,
"ui_wide_scrollbars": false,

Font

From here and here.

Press “Cmd + ,” to open preferences, configure the following content into the user settings:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Font name.
"font_face": "Hack",
// Font size.
"font_size": 15,
// Additional spacing at the top of each line, in pixels.
"line_padding_top": 3,
// Additional spacing at the bottom of each line, in pixels.
"line_padding_bottom": 3,
// Default ruler.
"rulers":
[
80
],
// Use space to replace tab by default.
"translate_tabs_to_spaces": true,
// Default tab size.
"tab_size": 4,

Full user settings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"color_scheme": "Packages/ayu/ayu-light.sublime-color-scheme",
"font_face": "Hack",
"font_size": 15,
// Additional spacing at the top of each line, in pixels
"line_padding_top": 3,
// Additional spacing at the bottom of each line, in pixels
"line_padding_bottom": 3,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
80
],
"tab_size": 4,
"theme": "ayu-light.sublime-theme",
"translate_tabs_to_spaces": true,
"ui_native_titlebar": true,
"ui_separator": true,
"ui_wide_scrollbars": false
}

Notes:

  1. The “vintage” setting is introduced by “Sublime Text”, to disable the “vintage mode“, which is a vi mode editing package for Sublime Text.

  2. The “line_padding_top/line_padding_bottom” settings are important, without which the linespacing of the text is very ugly.

  3. The “rulers” setting brings a default ruler.

Comments