How to disable spell checking in Atom?
I would like to turn off spell checking in Atom in one file. I cannot find any shortcut or option for that.
When I open a file with some non-programming stuff I get a red flood from the spell checker.
Solution 1:
For temporary solution or for someone like me permanent solution:
- go to "File / Settings / Packages"
- search "spell-check"
- click to button "Disable"
Solution 2:
Disable the spell-check plugin
- Go to Settings > Packages > Spell Check.
- Click the Disable button.
Toggle spell check for the current file
- Open up the Command Pallette (⌘+⇧+p).
- Type in
Spell Check: Toggle
. - Hit enter.
Create a shortcut to toggle spell checking
- Go to Atom > Keymap...
-
Add those lines at the bottom of the
keymap.cson
file:'atom-text-editor': 'cmd-alt-s': 'spell-check:toggle'
- Restart Atom.
Disable spell check for certain file types
There is a default list of scopes which triggers spell checking. You have to define your own list if you want to modify it.
- Go to Settings > Packages > Spell Check.
- Enter your modified list of scopes into the Settings > Grammars.
How to define my own list of scopes?
The default list of scopes includes: source.asciidoc
, source.gfm
, text.git-commit
, text.plain
, text.plain.null-grammar
If you don't know which scope applies to your currently opened file:
- Open up the Command Pallette (⌘+⇧+p).
- Type in
Editor: Log Cursor Scope
. Hit enter.
A notification like this should pop up:
The first item on the list is the scope which applies to your file.
Further reading
You can read more on the GitHub page of this package: https://github.com/atom/spell-check#spell-check-package.