当前位置: 代码迷 >> 综合 >> vs code 自定义代码字体颜色,局部变量、全局变量、函数、宏、属性
  详细解决方案

vs code 自定义代码字体颜色,局部变量、全局变量、函数、宏、属性

热度:44   发布时间:2023-11-22 22:04:21.0

vscode自定义代码字体与颜色风格

在setting.json中修改即可:
在这里插入图片描述

"editor.semanticTokenColorCustomizations": {
    "enabled": true, // enable for all themes"rules": {
    "*.static": {
    "foreground": "#ff0000","fontStyle": "bold"},"property": {
       //属性"foreground": "#10ec98","fontStyle": "bold"},"macro": {
          //宏"foreground": "#ec106c","fontStyle": "bold"},"function": {
       //函数"foreground": "#5491e0","fontStyle": "bold"},"variable.global": {
     //全局变量"foreground": "#beda22","fontStyle": "bold"},"variable.local": {
     //局部变量"foreground": "#2271da","fontStyle": "bold"},}}
  相关解决方案