Skip to content

Ignore capitalised words #2644

Answered by Jason3S
craigtp asked this question in Q&A
May 6, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There are a few ways depending upon your needs.

Regular expression can be used to block off text to be ignored.

In VS Code settings, you can set it for all file types:

or for specific file types:

.vscode/settings.json

// To ignore ALL CAPS in all files
"cSpell.ignoreRegExpList": ["/\\b[A-Z]+\\b/g"],

// To ignore ALL CAPS in SQL files
"cSpell.languageSettings": [
    {
        "languageId": "SQL",
        "ignoreRegExpList": ["/\\b[A-Z]+\\b/g"]
    }
]

Using a cspell.config.yaml file, makes it easier to write regular expressions.

languageSettings:
  - languageId: SQL
    ignoreRegExpList:
      - >-
        /\b[A-Z]+\b/g

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@craigtp
Comment options

Answer selected by craigtp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants