Open the bundle editor (⌃⌥⌘B) and open “Text” → “Menu Actions” → “Converting / Stripping” → “Remove Trailing Spaces in Document / Selection”.
Then in the drawer put callback.document.export in Semantic Class and Document / Replace Document as Input / Output.
Hooray! From now on each time you’ll save a document all trailing space will be stripped!

One of the big changes in TM2 is that you can no longer create new files from the Project Drawer’s right click menu. This was a handy feature that I honestly miss.
Fortunately, there is a work around though it’s somewhat less intuitive.
Select the folder that you want to save the file in from the File Browser/Project Drawer:

Here I have the stylesheets folder selected.
The file dialog will come up with the folder you chose in step 2 selected.

The save dialog with your folder selected.
Give your new file a name and hit Enter or click Save and the file will be right where you want it!

There it is.
It’s worth pointing out that steps 1 and 2 can be done in any order.

Want to be able to open files in the File Browser with a single click like you used to in TextMate 1? Click the file’s icon! A lot of people are asking about this one.
Development continues. This release allows you to disable the functionality that hides the tab bar when only one file is open. Disabling that auto hide makes Textmate 2’s functionality like that of Textmate 1.
callback.application.did-activate and callback.application.did-deactivate as two new semantic classes. A command with this class will be executed when the application gain/lose focus. The scope selector is matched against the “current scope” of the visible document (in each window). This allows creating a command with “Save” set to “Modified Documents” and thereby recreating TextMate 1.x’s ability to save modified documents on lost focus.text.html to only have the “save on lost focus” enabled when editing HTML files - alternatively one can introduce a custom scope like attr.save-on-deactivate and set that for specific projects via a scopeAttributes setting in .tm_properties.defaults write com.macromates.TextMate.preview disableTabBarCollapsing -bool YES.TextMate Blog » Multiple Carets -
In this article will discuss:
- Using multiple carets with the mouse
- Changes to column selection
- Using multiple carets with Find
- Using multiple carets with Copy and Paste
Allan pointed out to us yesterday that In addition to ⌘C one can also use ⌘X and ⌘V to move/copy files around (⌘X doesn’t “cut” before ⌘V is used).
Thanks to llamageddon for this list of language codes used for spellingLanguage in tm_properties
Here’s a great tip from eirkeirkeirk :
I noticed the ⌘⌥A command was gone from TM2. But I figured out a way to replicate it.
- Select all the lines you want to edit
- Turn it into a column selection (tap ⌥)
- Then ⌘→ to move all the carets to the end of each line
This is actually better than the previous incarnation because:
- You can actually see the carets, where as before you were typing blindly
- Each caret acts smarter. So you can do things like ⌥← to move back one word in each line.
He’s also provided a quick video showing it in action: http://dl.dropbox.com/u/364257/editall.mov
An excellent example of a .tm_properties file -
A big thanks to hmans for sharing his .tm_properties file. Particularly useful are his instructions on how to hide specific directories (in this case: log, vendor and tmp) from the “Find File” dialog, but not from the project browser.
I was delighted to see a significant update to the alpha released earlier today, with some much anticipated features/settings added. The big items here are the ability to disable text aliasing, the ability to put the file-browser on the right side of the window, and the option for HTML output to have its own window. See below for the complete release notes:
defaults write com.macromates.TextMate.preview htmlOutputPlacement window.defaults write com.macromates.TextMate.preview disableAntiAlias -bool YES.defaults write com.macromates.TextMate.preview fileBrowserPlacement right.<CR>) on the general clipboard are converted to regular newlines when pasting.TM_HG and TM_GIT in Preferences is no longer eclipsed by the default properties (which set them to point at /opt/local/bin).rm -rf).