19

Is there any way to enable Xcode's Check Spelling While Typing option on every Xcode project and file by default?

Currently, I have to set this option on each file, and the option gets reset after closing Xcode.

Option in question (Edit>Format>Spelling and Grammar>Check Spelling While Typing):

Xcode's Check Spelling While Typing Option

Daniel Storm
  • 18,301
  • 9
  • 84
  • 152
  • 1
    Lots of really poor answers here. I've been digging through Xcode's prefs trying to find this... – JAL Feb 28 '16 at 04:47
  • 1
    Find it really strange that it does not persist. Even when switching files it looses the setting. Guess the best way is to set a easy hotkey in the Xcode Key Bindings preferences say **Opt+Cmd+;** and then press it. Its too hard to go so many menu levels to enable it every time. – Pradeep K Feb 29 '16 at 13:21
  • Certainly, you may make a case for a preference option, but maybe Apple thinks spell check within a code editor is so rare that it resets off. Between Issues Editor and code completion, Xcode is checking against previously defined reserved words. Spell check would flag every non-trivial variable name. – Jerry Mar 09 '16 at 09:11

3 Answers3

1

Xcode's Check Spelling While Typing setting persists in Xcode 11 and above. The scope of the setting is Xcode and not a project.

Blazej SLEBODA
  • 8,936
  • 7
  • 53
  • 93
-1

Yes, you can change the default setting in System Preferences, then Language & Region and in Keyboard Preferences (Text tab) you can enable/disable Correct spelling automatically option.

Mac, System Preferences, Language & Region, Keyboard Preferences, screenshot of window

Tested under OS X - El Capitan.

See also: Turn off Spell Checking permanently

kenorb
  • 155,785
  • 88
  • 678
  • 743
-5

While I don't know a way to do this automatically, you can make choosing this option a little faster by setting up a shortcut in Sys Prefs->Keyboard->Shortcuts. Click App Shortcuts then the Plus button to add a keyboard shortcut that triggers this menu item.

Graham Perks
  • 23,007
  • 8
  • 61
  • 83