

Be sure to check out the screencasts to make the most out of TextMate. A number of bundles are installed by default to support programming languages, but if your favorite one is missing, there are instructions on installing bundles here. One great feature is the ability to just type ‘mate filename’ or ‘mate directory’ on the command-line, and have the file or directory open in TextMate. Customizable syntax highlighting makes writing text/code pleasant, and code collapsing and expanding makes editing long programs much more manageable (for example, one can ‘collapse’ if statements and do loops in Fortran). One can create projects with multiple files, search and replace text simultaneously in many files, and typeset LaTeX files. It provides support, through bundles, to over 150 programming languages (C/C++, Fortran, Python, Perl, Ruby, LaTeX, HTML, …) and tools (subversion, diff, mercurial, …). If any text editor can be compared to a swiss army knife, it is TextMate.

Sublime will cost your grant (or your advisor’s grant) $70 USD. Check out these tutorials to see some of the more advanced features in action. Many packages are available for both LaTeX and Python (but maybe not IDL, as far as I can tell). Update (by Kelle): New text editor on the block is Sublime Text and it looks just as powerful as TextMate, but more so. Choosing a good text editor is just as important as having a good chair to sit on, and can have a big impact on productivity! In this post, I will go over a few of the best text/code editors out there for MacOS X. One of the things we spend the most time doing as astronomers is writing text and/or code, whether to develop a pipeline to reduce/plot data, write papers/proposals, or write simulation codes.
