WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
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