You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何查找VS Code中未显示在问题面板的软提示拼写标记?

解决VS Code中拼写提示下划线看不清的问题

调整提示样式,让下划线更醒目

打开VS Code设置(快捷键Ctrl+,/Cmd+,),搜索editor.tokenColorCustomizations,点击「编辑settings.json」,添加以下配置,把拼写错误的标记改成显眼的红色实线:

"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "scope": "spellchecker.typo, invalid.illegal.spelling",
            "settings": {
                "foreground": "#ff0000",
                "underline": true,
                "underlineStyle": "solid",
                "underlineColor": "#ff0000"
            }
        }
    ]
}

这个配置覆盖了第三方拼写插件和VS Code原生拼写检查的标记样式,一眼就能看到错误位置。

用命令面板批量定位所有拼写错误

打开命令面板(Ctrl+Shift+P/Cmd+Shift+P),输入**"Spell Checker: Find All Spelling Issues"**(如果用的是Code Spell Checker插件),回车后会列出所有拼写错误的条目,点击就能直接跳转到对应代码行。

如果用的是VS Code原生拼写检查,先开启editor.spellCheck.showStatus,状态栏会显示拼写错误的数量,点击这个数字就能打开错误列表。

把拼写错误放进Problems面板,用F8直接跳转

  • 要是用Code Spell Checker插件:在设置里找cSpell.diagnosticLevel,设为Warning或Error,拼写错误就会出现在Problems面板,F8快捷键就能直接定位。
  • 原生拼写检查:开启editor.spellCheck.problems并设为true,同样能把拼写错误纳入Problems面板。

内容的提问来源于stack exchange,提问作者ikmac

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 02:37:11