VSCode 主题用AndroidStudio

主题下载 找Android Studio的或者JetBrains相关的主题。

然后需要手动修改函数颜色,type颜色,备注颜色等

打开settings.json 如下。其中scope 可以gpt或者其他方式搜索。
还可以ctrl + shift + p 输入:

Developer: Inspect Editor Tokens and Scopes

回车,然后鼠标放到你想修改的scope即可看到对应的值

{
  "workbench.colorTheme": "JetBrains Rider New UI Light",
  "workbench.iconTheme": "vscode-jetbrains-icon-theme-2023-light",
  "editor.fontFamily": "JetBrains Mono",
  "editor.fontLigatures": true,
  "tabnine.experimentalAutoImports": true,

  "clangd.detectExtensionConflicts": false,
  "makefile.configureOnOpen": true,
  "editor.fontSize": 15,
  "editor.lineHeight": 22,
  "editor.fontVariations": true,
  "editor.fontWeight": "normal",
  "editor.tokenColorCustomizations": {
    "[JetBrains Rider New UI Light]": { // 确保主题名称匹配
      "textMateRules": [
        {
          "scope": [
            "entity.name.function", // 函数名(如 `function foo()`)
            "meta.method-call", // 方法调用(如 `obj.method()`)
            "support.function", // 内置函数(如 `console.log`)
          ],
          "settings": {
            "foreground": "#313030", // 修改颜色(替换为你想要的颜色)
          }
        },
        {
          "scope": [
            "string",
          ],
          "settings": {
            "foreground": "#008848",
            // "fontStyle": "italic"
          }
        },
        {
          "scope": [
            "comment.line.double-slash",
            "punctuation.definition.comment",
            "comment.block",
          ],
          "settings": {
            "foreground": "#9f9f9f",
            "fontStyle": "italic"
          }
        },
        {
          "scope": [
            "variable.other.enummember.c",
          ],
          "settings": {
            "foreground": "#7003ac",
            "fontStyle": "italic"
          }
        },
        {
          "scope": [
            "entity.name.type",
          ],
          "settings": {
            "foreground": "#22005e",
          }
        }
      ]
    }
  },
}

此处备份下,免得后面修改还得搜很多,也给有需要的参考下。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值