Material Theme on sublime text 3 一個用起來很好的Sublime主題
阿新 • • 發佈:2018-11-22
Material Theme on sublime text 3
之前用Sublime看log總是會看的頭暈眼花,在github上找到一個很好的Sublime主題,記錄一下。原文地址
日前在facebook跟laracasts上面看到很多人使用這個theme,感覺看起來很不錯,就順手安裝了一下,整體感覺很棒,也自己客製化了一些設定,以下是設定與步驟。
Installation
Install package->Material Theme
重新啟動sublime
當然你也可以透過 github來安裝。
Settings
接下來我們要開始設定,告訴sublime我們要使用這個theme。
Preferences->Settings->User
{
"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
{
"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請自行建立)
Material Theme/schemes/Material-Theme.sublime-theme
輸入以下設定:
[
{
"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]
}
]