在vscode文件 => 首选项 => 设置 => 右上角点击打开设置(json), 在settings.json中追加以下一项:
"editor.tokenColorCustomizations": {
"comments": {
// 设置字体样式 加粗 下划线 斜体等
"fontStyle": "", // bold italic underline
// 设置字体颜色
// "foreground": "#4caee2"
"foreground": "#aaaaaa"
}, // 注释
// "keywords": "#0a0", // 关键字
// "variables": "#f00", // 变量名
// "strings": "#e2d75dbd", // 字符串
// "functions": "#5b99fcc9", // 函数名
// "numbers": "#AE81FF" // 数字
},
ctrl + s
保存即生效。