简世博客

一个简单的世界——博客空间,写了一些Android相关的技术文章,和一些点滴的想法

0%

Material Theme on sublime text 3 一个用起来很好的Sublime主题

Material Theme on sublime text 3

之前用Sublime看log总是会看的头晕眼花,在github上找到一个很好的Sublime主题,记录一下。原文地址

日前在facebook跟laracasts上面看到很多人使用這個theme,感覺看起來很不錯,就順手安裝了一下,整體感覺很棒,也自己客製化了一些設定,以下是設定與步驟。

material theme

Installation

  • 安裝Package Control(必要)

  • Install package->Material Theme

  • 重新啟動sublime

當然你也可以透過github來安裝。

Settings

接下來我們要開始設定,告訴sublime我們要使用這個theme。

Preferences->Settings->User

1
2
3
4
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"theme": "Material-Theme.sublime-theme"
}

that’s it.

已知bug

在官方的document當中,issue,假如在搜尋或者取代時看不到下面的input,只要輕輕把他往上拉一下就可以看到了。

個人化設定

以下是我開發時使用的設定,有興趣的同學可以參考:

Preferences->Settings->User

All

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"caret_style": "phase",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_face": "Source Code Pro",
"font_size": 17,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 2,
"line_padding_top": 2,
"tab_size": 4,
"theme": "Material-Theme.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}

此外,我覺得他的側欄字實在太過小了,也因此修改了當中的字體和存檔時的顏色
Browse packages..資料夾底下建立:(沒有folder請自行建立)

1
Material Theme/schemes/Material-Theme.sublime-theme

輸入以下設定:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[
{
"class": "sidebar_label",
"font.size": 14
},
{
"class": "tabset_control",
"tab_height": 70
},
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_light"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [125, 00, 125]
},
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_medium"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [125, 00, 125]
},
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_medium_dark"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [255, 161, 52]
},
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["file_dark"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
"fg": [255, 161, 52]
}
]

references