我正在尝试在点“。”之后配置字体颜色。在父类rute“meta.function-call”g.e之后调用方法时:
import os
os.path()
在这种情况下路径,但我想为其他一切自定义它,因为其他文本编辑器,例如sublimeText。无法在网上找到任何相关内容
下面是一个示例,它将为函数名称和括号添加颜色(可以省略主题名称级别以应用于所有主题):
"editor.tokenColorCustomizations": {
"[Atom One Light]": {
"textMateRules": [
{
"scope": [
"meta.function-call.generic.python",
"punctuation.definition.arguments.begin.python",
"punctuation.definition.arguments.end.python"
], /*functions()*/
"settings": {
"foreground": "#0184BC"
}
}
]
}
您可以使用Developer:Inspect TM Scopes(在Run Commands菜单中输入)来标识每个单独的标记: