1

I'm using vscode a customized theme of my own, which I based on another theme. Currently text like this is displayed in white:

""" some Python comment """

I would like to change the color but cannot find the right attribute to change. I tried adding this in the *.tmTheme file but it doesn't change anything:

<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>

Could you please help? Thank you very much in advance!

4

1 回答 1

4

正确的 tmLanguage 范围名称是string.quoted.docstring.multi.python.

Developer: Inspect TM scopes使用命令很容易找到:

我在这里的另一个答案中更详细地写了关于 tmLanguage 范围名称的内容。

以下适用于.tmTheme我(与您的示例相比,我只更改了<string>afterscope键):

<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>

于 2017-08-04T07:55:54.407 回答