How can I set TextMate as default text editor on Mac OS X?
I've tried it with
ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate
export EDITOR='mate -w'
but that doesn't work.
Just right (or control) click a file of the type you want to change and:
"Get Info" -> "Open with:" -> (Select TextMate) -> "Change All"
keep in mind, this will be on a per file extension basis, so you will have to do it for a file of each file extension you want textmate to be the default editor for.
Correct, I've done this for Sublime editor. Sweeping changes make me a bit nervous that it will go way too far (good luck rolling back) and there's really only a handful of file types that need altering. I do them on an as needed basis.
Hi,I do as you said,but only work for one file,not for all of them.
@Ben After selecting TextMate from the drop down you must hit the "Change All..." button and confirm. It most definitely works, as I said I do this myself.
@Ben you need to make sure and actually right click > Get Info, and look for 'Open with:' in that Info view. This is different then right clicking and doing 'Open With' right from that first menu. I initially made this mistake and it changed only that one file.