Skip to content

How to add a custom dictionary to a VSCode Workspace project? #2849

Answered by Jason3S
Yohanna asked this question in Q&A
Discussion options

You must be logged in to vote

@Yohanna,

It is common for one of the folders in a multi-root workspace to be the "root" and it is generally the first. But, a multi-root workspace does not have to have a root, so the extension has to guess.

If you leave the name off, it looks at the first workspace.

  "settings": {
    "cSpell.language": "en,en-GB,en-US",
    "cSpell.diagnosticLevel": "Warning",
    "cSpell.customDictionaries": {
      "custom-dictionary": {
        "name": "Workspace Dictionary",
        "description": "Custom dictionary",
        "path": "${workspaceFolder:client}/../custom-dictionary.txt",   // <------- You can make it relative to the client or server.
        "addWords": true,
        "scope": "work…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Yohanna
Comment options

Answer selected by Yohanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants