Default Editor for Creating Plugins

How to I change the default editor (from TextEdit) on the Mac when creating a plugin?

(I know I can change the Finder file association, but the default file association in the Finder for .omnijs is actually OmniFocus).