

At this point, TextMate is now listening to every action you perform. To begin a macro, type Option + Command + M you'll see a red recording circle in the lower right portion of the editor.

However, if you find that you often forget this shortcut, you can always record macros that will repeat any sequence of events as many times as your require. If you have the Zen Coding bundle installed, you can type Command + D to achieve the same effect. Vim offers the ever convenient, cit command (change inner tag). For example, what if you find - like I have - that you frequently change the entire contents of an HTML tag. Let's imagine that there's a sequence of actions you find yourself performing often. If you have multiple starred lines, each time you press F2, you'll be taken to the next applicable location.ĥ - Save Time with Macros Option + Command + m To return to this line of code (for instance, after scrolling up the page to find a particular variable name), type F2. To continue searching, again, press Control + s and Control + Shift + s to continue forward and backward, respectively. Once you've added your search query, press enter, and you'll instantly be transported to the next occurrence of that sequence on the page. If you need to quickly search for a piece of text within the current page, use Control + s instead to perform incremental search.Ī tiny textbox will pop up at the bottom of the screen. While the standard "popup" Command + f search functionality works, it's decidedly slow. Place the cursor on one of the related lines, press Option + Command + ], and TextMate will take care of the rest. If you've been lining up the equal signs manually, TextMate automates the process. This certainly makes for more readable code. Many developers prefer to line up the symbols within arrays and objects.
