Return to site

Textmate set up two window

broken image
broken image
broken image

I use Cmd-Shift-9 as the keyboard shortcut for this command. Here’s what the bundle editor window should look like for this command:įollow the same steps as above, but use the following code instead in the “Command(s)” field, and change the command title to “Change Spaces to Tabs.” Leave the other settings as they are, and save the command.

broken image

If you want to map the command to a keyboard shortcut, find the “Activation” menu, click the input area, and enter the keyboard shortcut. Name it “Remove Trailing Spaces in Document / Selection” and paste the following code into the “Command(s)” field. Select your bundle and use the “New” menu at the bottom left of the bundle editor to add a new command. “Remove Trailing Spaces in Document / Selection” Command I usually add my own commands to a bundle called so it sticks to the top of my bundle list. If you don’t know how to add commands to a TextMate bundle, or don’t have your own bundle set up yet, start here and add a new bundle. In this post I’ll show you how to add two useful commands to TextMate, then move through the steps I take for theme code cleanup and put the commands into practice.įirst, let’s add the commands to a TextMate bundle. During the code cleanup I often perform certain cleanup tasks over and over, which makes them perfect for TextMate commands. I spend a lot of time cleaning up WordPress themes.

broken image