当前位置: 首页 > article >正文

vs code 设置字体颜色

修改setting.json文件

{
    "remote.SSH.remotePlatform": {
        "ubuntu": "linux"
    },
    // "workbench.colorTheme": "One Dark Pro",
    // "editor.semanticTokenColorCustomizations": {
    // },
    "editor.semanticTokenColorCustomizations": {
        "enabled": true, // enable for all themes
        "rules": {
            "*.static": {
                "foreground": "#ff0000",
                // "fontStyle": "bold"
            },
            "property": { //属性
                // "foreground": "#6ae65a",
                // "fontStyle": "bold"
            },
            "macro": { //宏
                "foreground": "#234bfa",
                // "fontStyle": "bold"
            },
            // "function": {   //函数
            //     "foreground": "#e4db5f",
            //     "fontStyle": "bold"
            // },
            "variable.global": { //全局变量
                "foreground": "#ff09ff",
                // "fontStyle": "bold"
            },
            "variable.local": { //局部变量
                "foreground": "#71c3f3",
                // "fontStyle": "bold"
            },
        }
    },
    // 自定义的颜色
    "editor.tokenColorCustomizations": {
        // "[C++].variable.other.readwrite": "#88d8b0", // 类实例化的对象颜色 能用吗
        "comments": "#1d965a", // 注释
        "keywords": "#da10f5", // 关键字
        // "variables": "#d8aeff", // 变量名 函数的参数名 
        // "strings": "#00f7ff", // 字符串
        "functions": "#d8e662", // 自定义及内置的函数名称 如:print
        // "numbers": "#00eeff", // 数字
        "types": "#ff8717", //类定义颜色
        "textMateRules": [
            {
                "scope": "keyword.control",// 为控制关键字 if、else、for、while、return 等
                "settings": {
                    "foreground": "#C586C0"
                }
            },
            {
                "scope": "keyword.operator", // 操作符 +、-、*、/、=、==、!= 等
                "settings": {
                    // "foreground": "#f07d3b"
                }
            },
            {
                "scope": "storage.modifier", // 修饰符 const、static、volatile、inline
                "settings": {
                    "foreground": "#3b47f7"
                }
            },
            {
                "scope": "entity.name.type.class", // 为类名(如 MyClass)设置颜色
                "settings": {
                    "foreground": "#fd9116"
                }
            },
            {
                "scope": "entity.name.type.interface", // 为接口名(如 MyInterface)设置颜色
                "settings": {
                    "foreground": "#ff0505"
                }
            },
            {
                "scope": "entity.name.namespace", // 为命名空间设置颜色
                "settings": {
                    "foreground": "#0cfab2"
                }
            },
            // {
            //     "scope": "entity.name.tag", // 为标签名
            //     "settings": {
            //         "foreground": "#d35c5c"
            //     }
            // }
        ]
    },
    "highlightwords.box": {
        "light": true, // 在亮色主题下不显示边框
        "dark": false // 在暗色主题下显示边框
    },
    // 选中高亮的颜色
    "workbench.colorCustomizations": {
        "editor.selectionBackground": "#406b6d"
    },
}


http://www.kler.cn/a/578645.html

相关文章:

  • 大模型架构记录3-提示工程
  • VBA使用fso对象合并指定路径的txt文件(含子目录)
  • 第53天:Web攻防-SQL注入数据库类型用户权限架构分层符号干扰利用过程发现思路
  • 基于spring boot使用@Sl4j的日志功能,注解引入后爆红未生效
  • Python 相对路径写法
  • CSS Web安全字体
  • 新能源汽车能量管理:开启绿色出行新动力
  • PyQt组件间的通信方式
  • 本地fake server,
  • macos查询pip默认镜像地址
  • Flask 框架简介
  • 软考初级程序员知识点汇总
  • 建筑兔零基础自学记录42|cityengine2019导入sketchup/SU 2
  • 在Rocky Linux上安装Redis(DNF和源码安装)
  • 每日一练之合并两个有序链表
  • 冒泡排序的算法实现
  • 基于PySide6的CATIA零件自动化着色工具开发实践
  • CGI程序刷新共享内存视频流到HTTP
  • redis有哪几种持久化方式
  • 【求Fibonacci(斐波那契)数列】