How to set default editor?

When I selected the “Open Project in Editor” option in Corona Simulator, it used to open in Sublime which was just fine. However, I recently installed Texshop, and now the “Open Project in Editor” opens Texshop instead - which is NOT what I want.

How do I set the default editor for Corona?

Have you tried setting the file association at the OS level? For example, set the .lua files to “Always open in…” with your preferred editor? I would assume that Corona is just firing a command to execute the .lua files, which would ask Mac OS or Windows to simply find the first application which is associated with that filetype.

Sorry, that was an obvious solution. Especially as when I double clicked on a tex file, it opened in sublime  (!!!) and I did just that to fix that problem

Don’t forget to mark the post as answered.

Have you tried setting the file association at the OS level? For example, set the .lua files to “Always open in…” with your preferred editor? I would assume that Corona is just firing a command to execute the .lua files, which would ask Mac OS or Windows to simply find the first application which is associated with that filetype.

Sorry, that was an obvious solution. Especially as when I double clicked on a tex file, it opened in sublime  (!!!) and I did just that to fix that problem

Don’t forget to mark the post as answered.