Pla*_*cid 2 visual-studio-code
我在 VScode 中使用Nord 主题。Markdown 文件中的块引号看起来像这样,非常难以辨认。如何更改文本背景?
我在用户设置中尝试了以下操作,但它不起作用:
"workbench.colorCustomizations": {
"textBlockQuote.background": "#ff0000", // changes the markdown preview
"editor.textBlockQuote.background": "#0000ff", // Property not allowed
"[Nord]": {
"textBlockQuote.background": "#ff0000", // changes the markdown preview
},
},
"editor.tokenColorCustomizations": {
"textBlockQuote.background": "#ff0000", // Property not allowed
"editor.textBlockQuote.background": "#ff0000", // Property not allowed
"[Nord]": {
"textBlockQuote.background": "#ff0000", // Property not allowed
"editor.textBlockQuote.background": "#ff0000", // Property not allowed
}
},
Run Code Online (Sandbox Code Playgroud)
编辑器着色来自 textmate 语法。要覆盖这一点,你需要使用textMateRules的部分editor.tokenColorCustomizations
"editor.tokenColorCustomizations": {
"[Nord]": {
"textMateRules": [
{
"scope": "markup.quote.markdown",
"settings": {
"foreground": "#f0f"
}
}
]
}
}
Run Code Online (Sandbox Code Playgroud)
这里使用的范围 ( markup.quote.markdown) 是 markdown 块引号的 textmate 范围。可以使用Developer: Inspect TM ScopesVS Code中的命令来确定目标范围
请注意,VS Code 不支持设置文本的背景颜色。这是在这里跟踪
| 归档时间: |
|
| 查看次数: |
1730 次 |
| 最近记录: |