Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spell Check only words inside ``, "", '' or Notes #3516

Open
Ofer-Gal opened this issue Aug 9, 2024 · 1 comment
Open

Spell Check only words inside ``, "", '' or Notes #3516

Ofer-Gal opened this issue Aug 9, 2024 · 1 comment
Labels

Comments

@Ofer-Gal
Copy link

Ofer-Gal commented Aug 9, 2024

How can I set the spell checker to check only what is a static string or in the notes?

@Jason3S
Copy link
Collaborator

Jason3S commented Aug 12, 2024

@Ofer-Gal,

Similar to #150, #116, #2651.

It is possible to limit what is spell checked by using Regular Expressions. It isn't perfect, but it works in most cases.

Please see: README.md#predefined-regexp-expressions

.vscode/settings.json

{
    "cSpell.languageSettings": [
        {
            "languageId": "typescript,javascript", // file type.
            "includeRegExpList": ["string", "CStyleComment"] // string is predefined.
        }
    ]
}

In the preview version of the Extension there is a Trace mode that will show you what is spell checked by fading everything that isn't checked: F1 -> Spell Trace

image

Off:
image

On:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants