vscode 外观设置 基于Visual Studio Light 风格调整护眼风格
{ // see: https://www.cnblogs.com/garvenc/p/vscode_customize_color_theme.html, https://www.kancloud.cn/tjs5945111/tools/1923712
"workbench.colorTheme": "Visual Studio Light",
"git.confirmSync": false,
"git.autofetch": true,
"files.autoSave": "afterDelay",
"editor.fontWeight": "normal",
"workbench.colorCustomizations": {
"editor.background": "#F5F5F3",
"sideBar.background": "#faf7f7",
"sideBar.foreground": "#000000",
"sideBarSectionHeader.background": "#e4e0e0",
"statusBar.background": "#86058C",
"tab.border": "#dfdede",
"tab.activeForeground": "#0a059a",
"tab.activeBackground": "#f1f1ef",
"tab.inactiveBackground": "#e0dfdf",
"tab.inactiveForeground": "#000000",
"activityBar.background": "#dad8d8",
"activityBar.foreground": "#373636",
"activityBar.activeBorder": "#ff0000",
"editorLineNumber.foreground": "#b4afaf",
"editorLineNumber.activeForeground": "#0d49a9",
"panel.background": "#fdfbfd",
"panel.border": "#ddd9d9"
},
"editor.tokenColorCustomizations": {
"keywords": "#cf0d4b",
"numbers": "#e70505",
"comments": "#8f98a3",
"textMateRules": [
{
"scope": "keyword.control", //if switch break return
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "entity.name.type", //函数和类的名称颜色
"settings": {
"foreground": "#303131",
"fontStyle": "bold"
}
},
{
"scope": "entity.name.tag",
"settings": {
"foreground": "#380b7b"
}
},
{
"scope":"entity.name.function.go","settings": {
"foreground": "#000000",
"fontStyle": "bold"
}
},
{
"scope": "support.function.go",
"settings": {
"foreground": "#2e129e",
"fontStyle": "bold"
}
},{
"scope":"entity.other.attribute-name",
"settings": {
"foreground": "#d25a14",
}
},
{
"scope": "storage.type", //void int char
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "storage.modifier", //static const
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.operator", //=等号/赋值号 |= &=
"settings": {
"foreground": "#000000",
"fontStyle": "bold"
}
},
{
"scope": "keyword.operator.logical", //逻辑符号 && || !
"settings": {
"foreground": "#000000",
"fontStyle": "bold"
}
},
{
"scope":"punctuation.definition.string.begin",
"settings": {
"foreground": "#000000",
"fontStyle": "bold"
}
},
{
"scope": "punctuation.definition.string.end",
"settings": {
"foreground": "#000000",
"fontStyle": "bold"
}
},
{
"scope": "punctuation.definition.tag.begin",
"settings": {
"foreground": "#380b7b",
"fontStyle": "bold"
}
},
{
"scope": "punctuation.definition.tag.end",
"settings": {
"foreground": "#380b7b",
"fontStyle": "bold"
}
},
{
"scope": "punctuation.separator.colon.python",
"settings": {
"foreground": "#000000",
"fontStyle": "bold"
}
},{
"scope": "string.quoted.single.python",
"settings": {
"foreground": "#05465b",
"fontStyle": ""
}
},{
"scope":"string.quoted.raw.go",
"settings": {
"foreground": "#05465b",
"fontStyle": ""
}
},
{
"scope": "string.quoted.double.go",
"settings": {
"foreground": "#05465b",
"fontStyle": ""
}
},
{
"scope":"string.quoted.double.html","settings": {
"foreground": "#2c0ed6",
"fontStyle": ""
}
},
{
"scope": "string.regexp.quoted.single.python",
"settings": {
"foreground": "#056a6a",
"fontStyle": "bold"
}
},{
"scope":"variable.parameter",
"settings": {
"foreground": "#3e198e",
"fontStyle": "italic bold"
}
},
{
"scope":"keyword.go.mod","settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.channel.go",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "keyword.map.go",
"settings": {
"fontStyle": "bold"
}
},{
"scope":"keyword.function.go","settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.var.go",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.import.go",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.package.go",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.interface.go",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.type.go",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.struct.go",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope": "keyword.const.go",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},{
"scope": "keyword.operator.logical.python",
"settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},{
"scope":"constant.language.python","settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
},
{
"scope":"meta.function.python","settings": {
"foreground": "#000000",
"fontStyle": "bold"
}
},
{
"scope": "variable.parameter.function-call.python",
"settings": {
"foreground": "#05465b",
"fontStyle": ""
}
},
{
"scope": "meta.function-call.python",
"settings": {
"foreground": "#2e129e",
"fontStyle": "bold"
}
},
{
"scope":"variable.other.enummember","settings": {
"foreground": "#0ea44f",
"fontStyle": "bold"
}
},
{
"scope":"meta.function.decorator.python","settings": {
"foreground": "#504f53",
"fontStyle": ""
}
},
{
"scope":"support.function.builtin.python","settings": {
"foreground": "#de1051",
"fontStyle": "bold"
}
}
]
},
"editor.formatOnPaste": true,
"files.autoSaveDelay": 5000,
"editor.letterSpacing": 0,
"editor.lineHeight": 25,
"settingsSync.ignoredExtensions": [
],
"editor.fontFamily": "'Droid Sans Mono Slashed', Consolas, 'Courier New', monospace",
"editor.fontSize": 13
}
按【F1】,搜索【developer:inspect editor tokens and scopes】打开标记作用域查看器,之后点击代码中你要修改颜色的地方,查看【foreground】处的作用域,复制下来粘贴到【settings.json】"scope"后的引号里,就可以把颜色设置应用到对应位置。
左侧侧边栏资源管理器面板,字体修改
在vscode 安装目录 VSCode\resources\app\out\vs\workbench\workbench.desktop.main.css
查找 .monaco-workbench .part>.content 修改字体大小