How to disable autocorrect for only one application in OSX?
Turn off Autocorrect per Application

You can  do this in "Edit" menu for that Application under "Spelling and Grammar" and disable "Check Spelling While Typing".