如何在 VS Code 中获取当前主题的颜色? [英] How to get the colors of the current theme in VS Code?

查看:57
本文介绍了如何在 VS Code 中获取当前主题的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改 VS Code 实例中的某些颜色.我知道如何更改颜色("workbench.colorCustomizations" 设置 + Prop Names),但我不知道如何获取当前的配色方案,因为上述设置的值为 {}.

I am trying to change certain colors in my instance of VS Code. I know how to change colors ("workbench.colorCustomizations" setting + Prop Names), but I don't know how to get the current color scheme since the value of the above-mentioned setting is {}.

那么,问题是:
如何获取 Visual Studio Code 主题特定部分的颜色?
例如 gitDecoration.ignoredResourceForeground 的颜色,我正在尝试更改.

So, the question is:
How do I get colors of the specific part of the theme of my Visual Studio Code?
For example a color for gitDecoration.ignoredResourceForeground, which I am trying to change.

推荐答案

从命令面板执行:

Developer: Generate Color Theme From Current Settings

注释颜色 - 获得默认值的颜色.

Commented colors - the ones that get default values.

您还可以切换 chrome 控制台:

You can also toggle chrome console:

Developer: Toggle Developer Tools


或者在活动编辑器中获取一些颜色:


Or get some colors in active editor:

Developer: Inspect Editor Tokens and Scopes

这篇关于如何在 VS Code 中获取当前主题的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆