cspell
cspell copied to clipboard
The following error occurred while running the “cspell link add @cspell/dict-python” command
I have started the command prompt as an administrator
@merliang,
Thank you. Two things:
- Please add the actual error.
- It should not be necessary to install the python dictionary. It is included in CSpell by default and should be enabled for all python files.
There are a few of ways to enabled the dictionary in non-python files:
- Add
cspell:dictionary pythonto the file. It will turn on thepythondictionary. - Add it to one of the dictionary sections in the config file.
cspell.config.yamldictionaries: - python # Add Python dictionary here to always have it on. overrides: - filename: - '**/docs/**/*.md' # glob pattern to match all markdown files in the docs folder dictionaries: - python # Enable Python dictionary for markdown files in the docs folder languageSettings: - languageId: - vue # the file type to apply the settings to dictionaries: - python # Enable Python dictionary for Vue files