我尝试了许多VSCode颜色主题,但对我来说都有相同的问题。由于文本和背景几乎匹配,因此无法读取正在输入的代码段变量的区域。我尝试过调整主题中的属性,但似乎没有任何效果。想知道我需要更改主题中的哪个项目以编辑为代码段输入的变量的背景颜色(如果存在)。
我尝试过的属性:
{
"editor.findMatchBackground": "#b7c5d380",
"editor.findMatchHighlightBackground": "#b7c5d330",
"editor.findRangeHighlightBackground": "#243E51",
"editor.hoverHighlightBackground": "#333F4A",
"editor.inactiveSelectionBackground": "#1D252C",
"editor.lineHighlightBackground": "#28313a",
"editor.lineHighlightBorder": "#28313a",
"editor.rangeHighlightBackground": "#28313a",
"editor.selectionBackground": "#28323a",
"editor.selectionHighlightBackground": "#28313a",
"editor.wordHighlightStrongBackground": "#41505e",
"editor.wordHighlightBackground": "#FFFFFF0D"
}
答案 0 :(得分:2)
尝试:
"workbench.colorCustomizations": {
"editor.snippetTabstopHighlightBackground": "#ff0000",
}
或其他可以更改的snippet
颜色:
"editor.snippetFinalTabstopHighlightBackground": "#ff0000",
"editor.snippetFinalTabstopHighlightBorder": "#ff0000",
"editor.snippetTabstopHighlightBorder": "#ff0000",
我刚刚在snippet
选项中输入了colorCustomizations
,Intellisense发现了这些内容。