-
I've converted my Serbian dictionary from Hunspell to cspell using the cspell-cli tools. I have added it to cspell with In "cSpell.dictionaryDefinitions": [
{
// The name of the dictionary is used to look it up.
"name": "sr-RS",
// Path to the custom word file. Relative to this `cspell.json` file.
"path": "/Users/ttasovac/Development/ttasovac-forks/cspell-dicts/dictionaries/sr_RS/sr_rs.trie.gz",
// Some editor extensions will use `addWords` for adding words to your
// personal dictionary.
"addWords": true
}
] to the user I'm pretty sure this is documented somewhere, but I'm completely new to VSCode — today is my second day using it — and I'm a bit overwhelmed by all those different configuration options. I'd be most grateful for any tips. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
VSCode doesn't deal with "array" settings very well. Please try using Example: "cSpell.customDictionaries": {
"c-words": {
"name": "c-words",
"path": "~/cwords/all.txt"
}
}, Do not set |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, @Jason3S — this was very helpful. I can now use the custom Serbian dictionary with this: "cSpell.customDictionaries": {
"sr-RS": {
"name": "sr-RS",
"path": "/Users/ttasovac/Development/ttasovac-forks/cspell-dicts/dictionaries/sr_RS/sr_rs.trie.gz",
"description": "Serbian dictionary",
"addWords": false,
"scope": "user"
}
}, I'm still wondering however, why I'm getting this: and this: How does the extension pick up the correct name, icon and locales here? Many thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, @Jason3S! |
Beta Was this translation helpful? Give feedback.
@ttasovac,
VSCode doesn't deal with "array" settings very well.
Please try using
cSpell.customDictionaries
instead.Example:
Do not set
addWords
totrue
. It is not possible to add words to atrie.gz
file.