我的 VS Code 样式(2024.10,更了 dark modern):
"editor.tokenColorCustomizations": {
"[Default Light+]": {
"comments": {
"foreground": "#b4b4b4",
"fontStyle": "italic"
},
"functions": {
"foreground": "#f2d500",
"fontStyle": "italic bold"
},
"keywords": {
"foreground": "#41bae9",
"fontStyle": "bold"
},
"numbers": "#0c98c2",
"strings": {
"foreground": "#d58813",
"fontStyle": "italic"
},
"types": {
"foreground": "#45e24a",
"fontStyle": "italic bold"
},
"variables": {
"fontStyle": "bold",
"foreground": "#e04899"
},
"textMateRules": [
{
"scope": "keyword.operator",
"settings": {
"foreground": "#1ea5b4"
}
},
{
"scope": "constant.numeric",
"settings": {
"foreground": "#00d5ff"
}
}
]
},
"[Default Light Modern]": {
"comments": {
"foreground": "#b4b4b4",
"fontStyle": "italic"
},
"functions": {
"foreground": "#f2d500",
"fontStyle": "italic bold"
},
"keywords": {
"foreground": "#41bae9",
"fontStyle": "bold"
},
"numbers": "#0c98c2",
"strings": {
"foreground": "#d58813",
"fontStyle": "italic"
},
"types": {
"foreground": "#45e24a",
"fontStyle": "italic bold"
},
"variables": {
"fontStyle": "bold",
"foreground": "#e04899"
},
"textMateRules": [
{
"scope": "keyword.operator",
"settings": {
"foreground": "#1ea5b4"
}
},
{
"scope": "constant.numeric",
"settings": {
"foreground": "#00d5ff"
}
}
]
},
"[Default Dark Modern]": {
"comments": {
"foreground": "#cdcdcd",
"fontStyle": "italic"
},
"functions": {
"foreground": "#ffe311",
"fontStyle": "italic bold"
},
"keywords": {
"foreground": "#5eccf7",
"fontStyle": "bold"
},
"numbers": "#0c98c2",
"strings": {
"foreground": "#e99b26",
"fontStyle": "italic"
},
"types": {
"foreground": "#57f05c",
"fontStyle": "italic bold"
},
"variables": {
"fontStyle": "bold",
"foreground": "#f54f9f"
},
"textMateRules": [
{
"scope": "keyword.operator",
"settings": {
"foreground": "#1ea5b4"
}
},
{
"scope": "constant.numeric",
"settings": {
"foreground": "#45e0ff"
}
}
]
},
},我的 VS Code 样式(2023.12~):
"editor.tokenColorCustomizations": {
"[Default Light+]": {
"comments": {
"foreground": "#b4b4b4",
"fontStyle": "italic"
},
"functions": {
"foreground": "#f2d500",
"fontStyle": "italic bold"
},
"keywords": {
"foreground": "#41bae9",
"fontStyle": "bold"
},
"numbers": "#0c98c2",
"strings": {
"foreground": "#d58813",
"fontStyle": "italic"
},
"types": {
"foreground": "#45e24a",
"fontStyle": "italic bold"
},
"variables": {
"fontStyle": "bold",
"foreground": "#e04899"
},
"textMateRules": [
{
"scope": "keyword.operator",
"settings": {
"foreground": "#1ea5b4"
}
},
{
"scope": "constant.numeric",
"settings": {
"foreground": "#00d5ff"
}
}
]
},
"[Default Light Modern]": {
"comments": {
"foreground": "#b4b4b4",
"fontStyle": "italic"
},
"functions": {
"foreground": "#f2d500",
"fontStyle": "italic bold"
},
"keywords": {
"foreground": "#41bae9",
"fontStyle": "bold"
},
"numbers": "#0c98c2",
"strings": {
"foreground": "#d58813",
"fontStyle": "italic"
},
"types": {
"foreground": "#45e24a",
"fontStyle": "italic bold"
},
"variables": {
"fontStyle": "bold",
"foreground": "#e04899"
},
"textMateRules": [
{
"scope": "keyword.operator",
"settings": {
"foreground": "#1ea5b4"
}
},
{
"scope": "constant.numeric",
"settings": {
"foreground": "#00d5ff"
}
}
]
}
}我的VS Code 样式(~2023.12):
"[Default Light+]": {
"comments": {
"foreground": "#969696",
"fontStyle": "italic"
},
"functions": {
"foreground": "#e9b713",
"fontStyle": "italic bold"
},
"keywords": {
"foreground": "#0749d6",
"fontStyle": "bold"
},
"numbers": "#0c98c2",
"strings": {
"foreground": "#c27400",
"fontStyle": "italic"
},
"types": {
"foreground": "#6dd44e",
"fontStyle": "italic bold"
},
"variables": {
"fontStyle": "bold",
"foreground": "#7e01d1"
},
}将它贴在editor.tokenColorCustomizations里就可以啦。