我正在使用vscode,这是我自己定制的主题,我基于另一个主题。目前,这样的文本以白色显示:
“”一些Python评论“
我想改变颜色,但找不到正确的属性来改变。我尝试将它添加到*.tmTheme文件中,但是它没有改变任何东西:
<dict>
<key>name</key>
<string>Quotes</string>
<key>scope</key>
<string>markup.quote</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#F77669</string>
</dict>
</dict>你能帮忙吗?非常感谢您提前!
发布于 2017-08-04 07:55:54
正确的string.quoted.docstring.multi.python.作用域名称是tmLanguage
通过使用Developer: Inspect TM scopes命令很容易找到:

我在另一个答案here中更详细地介绍了here的作用域名称。
以下内容在.tmTheme中为我工作(与您的示例相比,我只在scope键之后更改了scope):
<dict>
<key>name</key>
<string>Quotes</string>
<key>scope</key>
<string>string.quoted.docstring.multi.python</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#F77669</string>
</dict>
</dict>

https://stackoverflow.com/questions/45493336
复制相似问题