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.
For temporary solution or for someone like me permanent solution:
Spell Check: Toggle
.Add those lines at the bottom of the keymap.cson
file:
'atom-text-editor':
'cmd-alt-s': 'spell-check:toggle'
There is a default list of scopes which triggers spell checking. You have to define your own list if you want to modify it.
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:
Editor: Log Cursor Scope
.Hit enter.
The first item on the list is the scope which applies to your file.
You can read more on the GitHub page of this package: https://github.com/atom/spell-check#spell-check-package.
There is a feature request (Add feature: toggle on/off) for this:
I added the feature 'Toggle' to the 'Packages -> Spell Check' menu.
Update 08/01/2016:
All checks have passed
1 successful check
This branch has no conflicts with the base branch
Only those with write access to this repository can merge pull requests.
I tried to open a very large non-English file, and the spell checker caused Atom to completely freeze. Worse, even after I kill Atom and try to relaunch it, it tries to open the same file immediately.
Eventually I had to run apm disable spell-check
in the command line. This is the solution when you can't even launch Atom.
Disabling spell-check
plugin itself is not recommended. Instead you should remove that cursor scope from included ones in spell-check
plugin.
Steps for removing cursor scope from spell-check
:
Ctrl
+Shift
+P
) and run the Editor: Log Cursor Scope
command. This will trigger a notification which will contain a list of scopes.spell-check
included scopes in settings. Included scopes can be found in Grammers section of spell-check
settings(Settings > Packages > Spell Check > Grammers).This should disable spell check for that particular kind of file only.
spell-check
plugin: superuser.com/a/1003636/442991