19

There's no point of enabling spell check for your html/js/css/c/php/py/etc files, but it can be very useful when you are writing in Markdown.

How to enable spell check only for only certain file extensions?

sergioFC
  • 5,926
  • 3
  • 40
  • 54
Limon Monte
  • 52,539
  • 45
  • 182
  • 213

1 Answers1

31

You can add a syntax specific setting:

  1. Open a file with the syntax you want to enable spell checking for (markdown).
  2. Open menu Preferences > Settings - More > Syntax Specific - User
  3. Set the content or add the spell_check setting:

    {"spell_check": true}

  4. Save

anmol
  • 751
  • 6
  • 7
sergioFC
  • 5,926
  • 3
  • 40
  • 54
  • 1
    Thanks for the tip. I've updated the path for future readers. – anmol Dec 17 '15 at 17:19
  • 1
    I just added this for my `md` files. Do you know the `tmTheme` key for spelling errors? – Enteleform Mar 26 '16 at 23:42
  • 1
    I don't know it. I haven't seen any theme or color scheme that changes spelling errors underlined style. – sergioFC Mar 27 '16 at 00:12
  • from [sublime text forum](https://forum.sublimetext.com/t/auto-spell-check-sublime-3/12930) **regarding sublime setting syntax :** If the file is not empty, at the top after the "{" add a new entry `"spell_check":true,` The comma is important – systemaddict Aug 09 '16 at 13:48