在 VS Code 中禁用波浪下划线
问题描述:
我使用的是 Visual Studio Code (v1.11.2).
有什么办法可以完全禁用波浪形下划线吗?
I'm using Visual Studio Code (v1.11.2).
Is there any way to disable wavy underline at all?
答
要在 vscode 中禁用波浪形/波浪形下划线,转到首选项并将下划线颜色设置为完全透明:
To disable wavy/squiggly underline in vscode, go to preferences and set underline color to fully transparent:
{
"workbench.colorCustomizations": {
"editorError.foreground": "#00000000",
"editorWarning.foreground": "#00000000",
"editorInfo.foreground": "#00000000"
}
}
尽管使下划线颜色不那么鲜艳可能更好:
Though it may be better to make underline color just less vibrant:
{
"workbench.colorCustomizations": {
"editorError.foreground": "#ff000088",
"editorWarning.foreground": "#ffe60033",
"editorInfo.foreground": "#00ff0088"
}
}