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

20 篇文章 0 订阅
9 篇文章 0 订阅

Material Theme on sublime text 3

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

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

material theme

Installation

當然你也可以透過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]
    }
]

references

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值