Che*_*ona 6 visual-studio-code vscode-settings
我正在 VSCode 中编写一些 python 脚本,我注意到它以斜体显示函数参数文本
例如
我喜欢这个颜色,但为什么“key”是斜体的?我搜索了所有 VSCode 设置并找不到它 - 也许是 Python 扩展正在这样做?但我也找不到相关设置
Chr*_*yes 18
在 VSCode 添加该设置之前,解决方法是将其添加到settings.json:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
"punctuation.definition.comment",
],
"settings": {
"fontStyle": ""
}
}
]
},
Run Code Online (Sandbox Code Playgroud)
该设置手动用于''评论font-style。根据您的主题使用斜体的位置,可能需要其他范围。
答案来自此 GitHub 问题线程:https://github.com/Microsoft/vscode/issues/32579#issuecomment-813005373
小智 9
只需将其添加到 settings.json 中即可
\nhttps://gist.github.com/pauldan/f3dbb3e33ee00acc36ad28c9e1de1bf9
\n这适用于任何主题 \xe2\x9c\x85
\n\n小智 7
如果您在 vscode 中使用主题的扩展。然后按照以下步骤操作。
Ctrl/cmd + shift + x-> 搜索扩展名,例如one dark pro.Extension settings。小智 6
Github 上有一个未解决的问题,并提供了解决方法:https://github.com/Microsoft/vscode/issues/32579#issuecomment-341502559
如果您知道要更改哪个范围,则可以更细化并缩小范围列表。要获取范围列表,请使用命令面板中的“开发人员:检查编辑器标记和范围”(Ctrl+Shift+p)
| 归档时间: |
|
| 查看次数: |
9836 次 |
| 最近记录: |