vscode-spell-checker icon indicating copy to clipboard operation
vscode-spell-checker copied to clipboard

Not flagging several miss-spellings of "corresponding"

Open andy-z opened this issue 3 years ago • 5 comments

Out of "coresponding, correspending, corrusponding, correspendi" only the last one is flagged. This is with C++ mode:

image

andy-z avatar Apr 08 '21 16:04 andy-z

@andy-z,

This is caused by the allowCompoundWords setting that is on by default for C++.

To turn it off:

Section in a cspell.json

{
    "languageSettings": [
        {
            "languageId": "c,cpp",
            "allowCompoundWords": false
        }
    ]
}

VS Code Settings:

    "cSpell.languageSettings": [
        {
            "languageId": "c,cpp",
            "allowCompoundWords": false
        }
    ]

Jason3S avatar Apr 10 '21 08:04 Jason3S

Thanks for suggestions, I tried to add it to settings.json but it does not change a thing. Besides I suspect turning it off will flag a lot of variable name, will it not?

andy-z avatar Apr 10 '21 14:04 andy-z

Thanks for suggestions, I tried to add it to settings.json but it does not change a thing.

There is a bug in VS Code, that if you add a new section to settings.json, it won't get picked up until VS Code is restarted.

Besides I suspect turning it off will flag a lot of variable name, will it not?

Yes, most likely.

Jason3S avatar Apr 20 '21 11:04 Jason3S

I just found this after trying for a couple of hours to figure out why "satisifed" was not flagged as a bad word. Turns out this setting was the problem. Turning it off revealed a number other words that were being missed. Any reason it's on by default for C++? I'm guessing it can't be restricted to code only (i.e. don't allow compound words in comments)?

maroc81 avatar Nov 30 '21 20:11 maroc81

@maroc81,

Because it is a breaking change, I'll turn it off by default for all languages on the next major release.

Jason3S avatar Dec 02 '21 16:12 Jason3S

It is now off by default.

Jason3S avatar Nov 11 '22 14:11 Jason3S

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Dec 12 '22 05:12 github-actions[bot]