我使用VS Code的代码拼写检查器。我想在“问题”面板(标准键盘绑定Ctrl + Shift + M)中禁用拼写检查器警告/错误,其中出现“更严重”的问题。
通常有很多拼写检查错误,我必须向下滚动到“真正的”问题:-)
见issues: don't show in Problems pane。建议尝试:
"cSpell.diagnosticLevel": "Hint",
在你的settings.json中。这将从问题窗格中删除它们。但是,在你的文件中,这些“提示”现在由拼写错误开头的三个小点表示,并不是那么明显。您可以使用colorCustomization修改它们:
"workbench.colorCustomizations": {
// will change the color of three dots to red
"editorHint.foreground": "#ff0000",
// will underline the entire word with dots in your chosen color
"editorHint.border": "#00ff66"
}
这将为您提供两组提示点,您可以通过使它们透明来隐藏内置的三个点:
"editorHint.foreground": "#f000",
右键单击单词并单击菜单中的显示拼写检查配置信息。将出现拼写检查选项卡,然后单击文件信息并取消选择启用文件类型的拼写检查程序(在我的情况下,它是打字稿)。