- Code Spell Checker Configuration - // The Language local to use when spell checking. Note, the settings in cspell.json will override the equivalent cSpell settings in VS Code’s settings.json. Words added to the dictionary are placed in the cspell.json file in the workspace folder. You can also type in a word you want to add to the dictionary: F1 add word – select Add Word to Dictionary and type in the word you wish to add. You will get a list of suggestions and the option to add the word. The easiest, is to put your cursor on the word you wish to add, when you lightbulb shows up, hit Ctrl . You have the option to add you own words to the workspace dictionary. The spell checker configuration can be controlled via VS Code preferences or cspell.json configuration file. These patterns are part of the default include/exclude list for every file. PhpHereDoc – This matches PHPHereDoc strings.ġ.CStyleComment – These are C Style comments /* */ and //.string – This matches common string formats like ‘…’, “…”, and `…`.Everything 1 – By default we match an entire document and remove the excludes.Base64 1 – matches base64 blocks of text longer than 40 characters.EscapeCharacters 1 – matches special characters: ‘\n’, ‘\t’ etc.HexValues – Matches common hex format like #aaa, 0xfeef, \u0134.Predefined RegExp expressions Exclude patterns # The local state of 'value' will be retained between iterations # only comments and block strings will be checked for spelling. cSpell:ignoreRegExp 0x - will ignore c style hex numbers // cSpell:ignoreRegExp /0x /g - will ignore upper case c style hex numbers. It is possible to disable / enable the spell checker by adding comments to your code. enableCompoundWords / disableCompoundWords – Allow / disallow words like: “stringlength”.Įnable / Disable checking sections of code.includeRegExp – Only text matching the collection of includeRegExp will be checked.ignoreRegExp – Any text matching the regular expression will NOT be checked for spelling.words – specify a list of words to be considered correct and will appear in the suggestions list.ignore – specify a list of words to be ignored.enable – turn the spell checker back on after it has been turned off.disable – turn off the spell checker for a section of code. This is to help with file specific issues that may not be applicable to the entire project.Īll settings are prefixed with cSpell: or spell-checker. It is possible to add spell check settings into your source code. All symbols and punctuation are ignored.Only words longer than 3 characters are checked.The words in the dictionary can and do contain errors.It does not send anything outside your machine. The spellchecker uses a local word dictionary.It will not catch errors like english which should be English. This spellchecker is case insensitive.CURLedRequest -> curled request – trailing ed.Trailing s, ing, ies, es, ed are kept with the previous word. There are a few special cases to help with common spelling practices for ALL CAPS words.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |