Microsoft VS Code上的JSON和tmTheme主题文件之间的区别是什么?

时间:2016-08-31 13:35:27

标签: json themes visual-studio-code vscode-extensions

首先,我试图将高对比度主题与Monokai结合起来。我喜欢UI与高对比度的外观,但文本颜色是Visual Studio的默认Dark主题,我想将其更改为Monokai。

我去寻找" ... \ Microsoft VS Code \ resources \ app \ extensions ..."下的主题文件。

高对比度 - " .. \ theme-defaults \ themes \ hc_black.json"

Monokai - " .. \ theme-monokai \ themes \ Monokai.tmTheme"

检查后,两个文件的属性看起来不同,所以我不能将它们1到1映射。在我涉猎代码并开始试错法之前,这些文件之间的主要区别是什么? VS代码?有没有办法从一个转换到另一个?

1 个答案:

答案 0 :(得分:0)

I continued to fiddle around in the files and I finally got it, for others in the same situation here's how you solve this.

The JSON files I aluded to on my question are actually UI Themes and the tmTheme files are color schemes for syntax highlight.

Each theme has a package.json and on this file there is an attribute called "uiTheme" that you can change.

Currently the themes that I know off are the following:

  • vs
  • vs-dark
  • hc-black (the one I wanted)

For more information on this check out the Common Questions at the end of this page: https://code.visualstudio.com/docs/customization/themes