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
"ui_native_titlebar": true,
2
"ui_separator": true,
3
"ui_wide_scrollbars": false,

Font

From here and here.

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

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

Full user settings

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

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