Code Spell Checker, an extension of VS Code, is a useful feature that points out spelling mistakes, but it does not support the Ruby language by default and will not work unless you set it yourself. In this article, I would like to introduce how to set it.
I often got an error in the rails test
as I was learning in the Rails tutorial, most of which was due to a misspelling.
I found out about an extension called Code Spell Checker that checks for spelling mistakes, and tried installing it, but it didn't work.
Apparently, Ruby is not supported by default, so I tried to find out how to add it in the settings.
I wrote this article for those who have installed Code Spell Checker but are having trouble with the language not being supported.
macOS Catalina Version: 10.15.6 VSCode version: 1.49.0 Code Spell Checker Version: 1.9.0
The flow is to add the language to the settings.json
file using cSpell.enabledLanguageIds
.
First, how to open the settings.json
file.
Open the settings screen with command + comma (,)
.
Click the icon at the top right of the settings screen to open the settings.json
file.
All you have to do now is add " cSpell.enabledLanguageIds ": ["Language "]
to the settings.json
file.
settings.json
"cSpell.enabledLanguageIds": [
"css",
"html",
"javascript",
"json",
"less",
"markdown",
"plaintext",
"scss",
"text",
"ruby",
"yaml",
"yml"
],
Code Spell Checker now works with files in the added language. Please see the Code Spell Checker site for details. Code Spell Checker - Visual Studio Marketplace