Disable spell check on field names in Android Studio

Jared Rummler picture Jared Rummler · Dec 10, 2014 · Viewed 17.7k times · Source

I have been using Eclipse/ANT for 5 years now. Android Studio is out of beta so I am starting to get myself familiar with it. Android Studio seems to be spell checking field names. Why on earth would any IDE do that?

I still want spell check enabled, but not on any field names. I would expect spell check to only check comments or javadoc. How can I fix this?

enter image description here

Answer

ChrisMcJava picture ChrisMcJava · May 1, 2015

Spell check can be customized/disable via:

Android 1.1.0: File -> Settings (Project Settings [...]) -> Inspections -> Spelling -> Typo

Android 4.1.1: File -> Preferences -> Editor -> Inspections -> Proofreading -> Typo

This brings up three options that can be enabled/disabled:

  1. Process code
  2. Process literals
  3. Process comments

Uncheck whichever boxes you would like