【问题标题】:VSCode Code Spell Checker extension - include .todo filesVSCode 代码拼写检查器扩展 - 包括 .todo 文件
【发布时间】:2023-02-03 03:28:50
【问题描述】:

我正在使用 vscode 扩展程序进行拼写检查:

https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker

问题是 - 我不能包含“.todo”文件类型。

我试过了(对我没有用):

  • "cSpell.files": ["**/**.todo"] (同时关闭所有现有文件检查)
  • "cSpell.enable File types": [ "*" ] 包括所有字段类型

我注意到有一个语言列表,但没有找到添加新语言的方法。

【问题讨论】:

  • 您的 .todo 文件是什么语言?降价?纯文本?其他一些标记语言?

标签: visual-studio-code spell-checking


【解决方案1】:

尝试将以下 cSpell override 添加到您的 .vscode/cSpell.json 文件中:

"overrides": [
  {
    "filename": "**/*.todo",
    "languageId": "markdown" // or whatever language ID of the language your file is
  }
]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-06-12
    • 1970-01-01
    • 2015-05-13
    • 1970-01-01
    • 2015-07-25
    • 2016-11-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多