gpt4 book ai didi

python - 更改meta.function-call Visual Studio代码的字体颜色

转载 作者:行者123 更新时间:2023-11-30 22:09:35 24 4
gpt4 key购买 nike

当在父类规则“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"
}
}
]
}

您可以使用开发人员:检查编辑器 token 和范围(在“运行命令”菜单中输入)来识别每个单独的 token :

enter image description here

关于python - 更改meta.function-call Visual Studio代码的字体颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51875844/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com