VS Code:启用内联拼写检查器,但在“问题”面板中禁用拼写检查

Jen*_*sen 4 spell-checking visual-studio-code vscode-extensions

我将代码拼写检查器用于VS Code。我想在显示“更严重”问题的“问题”面板(标准键盘绑定Ctrl+ Shift+ M)中禁用拼写检查器警告/错误。

通常,拼写检查器错误太多,我不得不向下滚动到“真正的”问题:-)

在此处输入图片说明

小智 17

只需切换命令面板中的拼写选项(查看命令面板) 禁用拼写检查

  • 这些问题旨在消除“问题面板”中的拼写错误,同时保留下划线。不是一起禁用它。 (8认同)
  • @Bryan 然后卸载它 (8认同)

Ruc*_*hDi 15

  • 转到设置(Ctrl+,)
  • cSpell.diagnosticLevel在搜索框中输入
  • 将选项更改为提示


Mar*_*ark 11

查看问题:不显示在“问题”窗格中。建议尝试:

  "cSpell.diagnosticLevel": "Hint",
Run Code Online (Sandbox Code Playgroud)

在您的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"
}
Run Code Online (Sandbox Code Playgroud)

这将为您提供两组提示点,您可以通过使它们透明来隐藏内置的三个点:

"editorHint.foreground": "#f000",
Run Code Online (Sandbox Code Playgroud)

  • 对我来说,1.44.1 `editorHint.border` 不会给整个单词加下划线,它只是用 4 个点而不是 3 个点来表示。而且它们是稍大一些的点。对我来说可能足够可见:https://imgur.com/a/FZuvEjq (3认同)
  • 对于对此更好的解决方案感兴趣的任何人,请检查 VSCode 问题并投票:https://github.com/streetsidesoftware/vscode-spell-checker/issues/186 (3认同)