How to get the colors of the current theme in VS Code?

余生长醉 提交于 2019-12-21 05:21:05

问题


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 {}.

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.


回答1:


Execute from command palette:

Developer: Generate Color Theme From Current Settings

Commented colors - the ones that get default values.


You can also toggle chrome console:

Developer: Toggle Developer Tools

Or get some colors in active editor:

Developer: Inspect TM Scopes


来源:https://stackoverflow.com/questions/47970372/how-to-get-the-colors-of-the-current-theme-in-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!