VS Code:启用行内拼写检查,关闭Problems面板拼写检查提示
Turn Off Spelling Check Warnings/Errors in VS Code's Problems Panel
I totally get where you're coming from—having spelling checks cluttering up the Problems panel makes it way harder to spot the actual critical code issues you care about. Here's how to fix this, assuming you're using the widely used Code Spell Checker plugin:
- Open VS Code Settings: Press
Ctrl+,(Windows/Linux) orCmd+,(Mac), or go toFile > Preferences > Settingsfrom the top menu. - Find the diagnostic level setting: In the settings search bar, type
cSpell.diagnosticLevel. This setting controls how spelling issues are classified in VS Code. - Switch to "Hint" level: By default, this is set to
"Warning"or"Error"—both of which show up in the Problems panel. Changing it to"Hint"will keep the inline underlines for spelling issues but remove them from the Problems panel entirely. - Optional: Disable all spelling diagnostics: If you don't even want inline hints, search for
cSpell.enableDiagnosticsand toggle it tofalse. - Granular control (if needed): If you only want to exclude spelling checks from specific files/folders, use the
cSpell.excludesetting to add patterns (like**/*.config.jsorbuild/**) where you don't want spelling checks to run.
This should clear up your Problems panel so you can focus on the important stuff without scrolling through a bunch of spelling warnings!
内容的提问来源于stack exchange,提问作者Jens Madsen
相关产品推荐
相关产品推荐

