前言
- 关于Sublime Text对于我的使用体验,只能说内置的代码主题真的都太low了,一点都不好看。
- 所以接下来我分享一下我自定义代码配色。
- 当然,大家也可以通过我给的中文翻译注释来自定义自己喜欢的颜色。
- 废话不多说,直接上代码
- 直接将代码复制粘贴到:Preferences > Customize Color Scheme 即可。
{
"variables":
{
"white": "hsl(163, 59%, 53%)",
},
"globals":
{
"foreground": "var(white)", // 前景色
"background": "rgb(43, 48, 56 )", // 背景
},
"rules":
[
{
"name": "Comment", // 注释
"scope": "comment, punctuation.definition.comment",
"foreground": "var(green)"
},
{
"name": "String", // 字符串
"scope": "string",
"foreground": "rgb(215, 215, 215)"
},
{
"name": "Punctuation", // 符号
"scope": "punctuation.section",
"foreground": "var(white2)"
},
{
"name": "Punctuation", // 符号
"scope": "punctuation.definition - punctuation.definition.numeric.base"