@@ -386,34 +386,25 @@ Note, the settings in `cspell.json` will override the equivalent cSpell settings
386
386
387
387
#### Example _ cspell.json_ file
388
388
389
- ``` javascript
389
+ ``` jsonc
390
390
// cSpell Settings
391
391
{
392
392
// Version of the setting file. Always 0.2
393
393
" version" : " 0.2" ,
394
394
// language - current active spelling language
395
395
" language" : " en" ,
396
396
// words - list of words to be always considered correct
397
- " words" : [
398
- " mkdirp" ,
399
- " tsmerge" ,
400
- " githubusercontent" ,
401
- " streetsidesoftware" ,
402
- " vsmarketplacebadge" ,
403
- " visualstudio"
404
- ],
397
+ " words" : [" mkdirp" , " tsmerge" , " githubusercontent" , " streetsidesoftware" , " vsmarketplacebadge" , " visualstudio" ],
405
398
// flagWords - list of words to be always considered incorrect
406
399
// This is useful for offensive words and common spelling errors.
407
400
// For example "hte" should be "the"
408
- " flagWords" : [
409
- " hte"
410
- ]
401
+ " flagWords" : [" hte" ]
411
402
}
412
403
```
413
404
414
405
### VS Code Configuration Settings
415
406
416
- ``` javascript
407
+ ``` jsonc
417
408
// -------- Code Spell Checker Configuration --------
418
409
// The Language locale to use when spell checking. "en", "en-US" and "en-GB" are currently supported by default.
419
410
" cSpell.language" : " en" ,
@@ -519,25 +510,25 @@ Here are some of the default rules:
519
510
- ` "*" ` matches any programming language / file type.
520
511
- ` "locale" ` is used to filter based upon the ` "cSpell.language" ` setting.
521
512
522
- ``` javascript
513
+ ``` jsonc
523
514
{
524
- " cSpell.languageSettings" : [
525
- { " languageId" : ' * ' , " locale" : ' en ' , " dictionaries" : [' wordsEn' ] },
526
- { " languageId" : ' * ' , " locale" : ' en-US' , " dictionaries" : [' wordsEn' ] },
527
- { " languageId" : ' * ' , " locale" : ' en-GB' , " dictionaries" : [' wordsEnGb' ] },
528
- { " languageId" : ' * ' , " dictionaries" : [' companies' , ' softwareTerms' , ' misc' ] },
529
- { " languageId" : " python" , " dictionaries" : [" python" ]},
530
- { " languageId" : " go" , " dictionaries" : [" go" ] },
531
- { " languageId" : " javascript" , " dictionaries" : [" typescript" , " node" ] },
532
- { " languageId" : " javascriptreact" , " dictionaries" : [" typescript" , " node" ] },
533
- { " languageId" : " typescript" , " dictionaries" : [" typescript" , " node" ] },
534
- { " languageId" : " typescriptreact" , " dictionaries" : [" typescript" , " node" ] },
535
- { " languageId" : " html" , " dictionaries" : [" html" , " fonts" , " typescript" , " css" ] },
536
- { " languageId" : " php" , " dictionaries" : [" php" , " html" , " fonts" , " css" , " typescript" ] },
537
- { " languageId" : " css" , " dictionaries" : [" fonts" , " css" ] },
538
- { " languageId" : " less" , " dictionaries" : [" fonts" , " css" ] },
539
- { " languageId" : " scss" , " dictionaries" : [" fonts" , " css" ] },
540
- ];
515
+ " cSpell.languageSettings" : [
516
+ { " languageId" : " * " , " locale" : " en " , " dictionaries" : [" wordsEn" ] },
517
+ { " languageId" : " * " , " locale" : " en-US" , " dictionaries" : [" wordsEn" ] },
518
+ { " languageId" : " * " , " locale" : " en-GB" , " dictionaries" : [" wordsEnGb" ] },
519
+ { " languageId" : " * " , " dictionaries" : [" companies" , " softwareTerms" , " misc" ] },
520
+ { " languageId" : " python" , " dictionaries" : [" python" ] },
521
+ { " languageId" : " go" , " dictionaries" : [" go" ] },
522
+ { " languageId" : " javascript" , " dictionaries" : [" typescript" , " node" ] },
523
+ { " languageId" : " javascriptreact" , " dictionaries" : [" typescript" , " node" ] },
524
+ { " languageId" : " typescript" , " dictionaries" : [" typescript" , " node" ] },
525
+ { " languageId" : " typescriptreact" , " dictionaries" : [" typescript" , " node" ] },
526
+ { " languageId" : " html" , " dictionaries" : [" html" , " fonts" , " typescript" , " css" ] },
527
+ { " languageId" : " php" , " dictionaries" : [" php" , " html" , " fonts" , " css" , " typescript" ] },
528
+ { " languageId" : " css" , " dictionaries" : [" fonts" , " css" ] },
529
+ { " languageId" : " less" , " dictionaries" : [" fonts" , " css" ] },
530
+ { " languageId" : " scss" , " dictionaries" : [" fonts" , " css" ] }
531
+ ]
541
532
}
542
533
```
543
534
@@ -645,7 +636,7 @@ Example adding medical terms, so words like _acanthopterygious_ can be found.
645
636
646
637
** VS Code Settings**
647
638
648
- ``` js
639
+ ``` jsonc
649
640
" cSpell.customDictionaries" : {
650
641
" myWords" : {
651
642
" name" : " myWords" ,
@@ -670,15 +661,13 @@ This file can be either at the project root or in the .vscode directory.
670
661
671
662
Example adding medical terms, where the terms are checked into the project and we only want to use it for .md files.
672
663
673
- ``` javascript
664
+ ``` jsonc
674
665
{
675
666
" dictionaryDefinitions" : [
676
- { " name" : " medicalTerms" , " path" : " ./dictionaries/medicalterms-en.txt" },
677
- { " name" : " cities" , " path" : " ./dictionaries/cities.txt" }
678
- ],
679
- " dictionaries" : [
680
- " cities"
667
+ { " name" : " medicalTerms" , " path" : " ./dictionaries/medicalterms-en.txt" },
668
+ { " name" : " cities" , " path" : " ./dictionaries/cities.txt" }
681
669
],
670
+ " dictionaries" : [" cities" ],
682
671
" languageSettings" : [
683
672
{ " languageId" : " markdown" , " dictionaries" : [" medicalTerms" ] },
684
673
{ " languageId" : " plaintext" , " dictionaries" : [" medicalTerms" ] }
@@ -727,7 +716,7 @@ interface DictionaryDefinition {
727
716
728
717
** VS Code Settings**
729
718
730
- ``` js
719
+ ``` jsonc
731
720
" cSpell.customDictionaries" : {
732
721
" project-words" : {
733
722
" name" : " project-words" ,
0 commit comments