You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have very common situations where I convert my file into a supported type, to get decent results with the spell checker:
SystemVerilog files (.sv and .svh)
Temporarily change to verilog files (.v, and include "verilog" in "cSpell.enableFiletypes"`.
Shell scripts (.sh)
Temporarily change to a plaintext file (.txt)
I am actually a bit surprised that this support is not in place in the baseline cSpell product:
SystemVerilog is largely based on Verilog, so and the rename gives me decent results.
PowerShell is supported, but much more popular shell scripts (bash, zsh,..) are not?
Anyway:
Question: is there currently an easier way to get these non-supported file types spell checked?
Feature: would it be possible to create a setting that allows automatic association of a filetype with an existing spell checker?
The text was updated successfully, but these errors were encountered:
Jason3S
changed the title
Force check even if file type or is not supported
Q: How to spell check SystemVerilog and other file types?
Feb 25, 2024
By default, the spell checker only checks file types that have been enabled. "cSpell.enableFiletypes" is the right setting. It works in conjunction with "cSpell.enableLanguageIds". The initial list comes from "cSpell.enableLanguageIds" and is augmented by "cSpell.enableFiletypes". The hard part is to guess the file type used internally by VSCode. The Spell:Enable Spell Checking Document Language command will handle the change for you.
Using the Spell:Enable Spell Checking Document Language command
Open a file of the type you want to spell check.
Open the command palette
Run: Spell:Enable Spell Checking Document Language
Note: Please forgive the misleading name of the command. It is a left over from when VSCode referred to Document Type as Document Language. It still does internally.
That command adds or removes the file type from the enableFiletypes list. By default, shellscript files should be spell checked. If that is not happening for you, I suspect that "cSpell.enableLanguageIds" setting has been changed. Please remove it from your settings and use "cSpell.enableFiletypes" instead to add or remove a file type.
I have very common situations where I convert my file into a supported type, to get decent results with the spell checker:
I am actually a bit surprised that this support is not in place in the baseline cSpell product:
Anyway:
Question: is there currently an easier way to get these non-supported file types spell checked?
Feature: would it be possible to create a setting that allows automatic association of a filetype with an existing spell checker?
The text was updated successfully, but these errors were encountered: