In the Corona Simulator, when you do File → Open Project in Editor, the code opens in Sublime or Textedit.
If you want to change it to your favourite editor, you can follow these steps.
Open a corona project folder in Finder. Right click on the ‘main.lua’ file, then Choose “Get Info”.
In the Open With, Choose your favourite editor app from the list and Click “Change All”.
Thats it !
Now, When ever you click on the “Open in Editor”, it will open with your favourite editor.
NOTE : When there is a error in code, And when you choose “Edit Code”, it will take you to the right file, but not the exact line number other than Sublime Text.
My Fav : Atom by GitHub