Created
November 13, 2025 07:55
-
-
Save Albert26193/abcfde0291697bc6f16f0a6085cf01d3 to your computer and use it in GitHub Desktop.
semantic vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // "editor.semanticTokenColorCustomizations": { | |
| // "[*]": { // 针对某个主题,可改为 "[*]" 以全局生效 | |
| // "enabled": true, | |
| // "rules": { | |
| // /* ---------- 基础类型 ---------- */ | |
| // "type": "#FFD700", // 类、结构体、联合体、枚举 | |
| // "typeParameter": "#FF79C6", // 模板形参,如 template<typename T> | |
| // "typedef": "#00FFFF", // typedef / using 别名 | |
| // "namespace": "#8A2BE2", // 命名空间 | |
| // "enum": "#FFA500", // 枚举类型 | |
| // "enumMember": "#FF8C00", // 枚举值 | |
| // /* ---------- 函数相关 ---------- */ | |
| // "function": "#50FA7B", // 全局函数 | |
| // "method": "#50FA7B", // 成员函数 | |
| // "function.declaration": "#50FA7B", | |
| // "method.declaration": "#50FA7B", | |
| // "macro": "#FF5555", // #define | |
| // "macro.function": "#FF5555", // 函数式宏 | |
| // /* ---------- 变量/参数/常量 ---------- */ | |
| // "variable": "#F8F8F2", // 普通变量 | |
| // "variable.local": "#F8F8F2", // 局部变量 | |
| // "variable.global": "#BD93F9", // 全局变量 | |
| // "parameter": "#FFB86C", // 函数/方法形参 | |
| // "property": "#66D9EF", // 成员变量 | |
| // "field": "#66D9EF", // struct/union 成员 | |
| // "constant": "#BD93F9", // const 变量 | |
| // "static": "#BD93F9", // static 变量 | |
| // "*.static": "#ff0000", | |
| // "*.readonly": "#ff0000", | |
| // "interface": "#ff0000", | |
| // "*.declaration": "#ff0000", | |
| // "*.documentation": "#ff0000", | |
| // "event": "#ff0000", | |
| // "*.abstract": "#ff0000", | |
| // "decorator": "#ff0000", | |
| // "*.modification": "#ff0000", | |
| // "struct": "#ff0000", | |
| // "class": "#ff0000", | |
| // "*.deprecated": "#ff0000", | |
| // "regexp": "#ff0000", | |
| // "*.async": "#ff0000", | |
| // /* ---------- 字符串/字符/数字 ---------- */ | |
| // "string": "#F1FA8C", // std::string 之类类型名 | |
| // "stringLiteral": "#F1FA8C", // "hello" 字面量 | |
| // "char": "#8BE9FD", // char 类型 | |
| // "charLiteral": "#8BE9FD", // 'c' 字面量 | |
| // "number": "#BD93F9", // 123, 3.14 | |
| // "numberLiteral": "#BD93F9", | |
| // /* ---------- 操作符/关键字 ---------- */ | |
| // "operator": "#FF79C6", // 运算符重载函数 | |
| // "keyword": "#FF79C6", // 关键字(部分主题专用) | |
| // "label": "#FF5555", // goto label | |
| // /* ---------- 模板/概念 ---------- */ | |
| // "template": "#FF79C6", // template<typename T> 中的 template | |
| // "concept": "#FF79C6", // C++20 concept | |
| // /* ---------- 杂项 ---------- */ | |
| // "comment": "#6272A4", // 注释(若语义层返回) | |
| // "comment.doc": "#6272A4", // 文档注释 | |
| // "escapeSequence": "#FF5555", // 转义序列 | |
| // "formatSpecifier": "#FF5555", // printf 格式符 | |
| // "preprocessor": "#FF79C6", // #include/#ifdef 等 | |
| // "header": "#8BE9FD", // #include <header> | |
| // "path": "#8BE9FD", // 路径字符串 | |
| // "uri": "#8BE9FD", // URI 字符串 | |
| // /* ---------- 自定义修饰符 ---------- */ | |
| // "declaration": "#50FA7B", // 任何声明(加粗) | |
| // "readonly": "#BD93F9", // 只读实体 | |
| // "defaultLibrary": "#8BE9FD" // 标准库符号 | |
| // } | |
| // } | |
| // }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment