What Editing Features Does TextMate Offer for Coding?
Updated
TextMate is a macOS text editor whose coding features center on making repetitive edits faster: multiple carets for simultaneous changes, snippets with placeholders and transformations, macros for repeated work, and supporting tools such as clipboard history and foldable code blocks. It requires macOS 10.12 or later, and the current download listed on macromates.com is TextMate 2.0. These features are most useful if you regularly edit similar code in several places, reuse boilerplate, or repeat the same keystroke sequence.
Multiple carets for simultaneous edits
TextMate lets you add multiple insertion points so you can make several changes at once, swap pieces of code, and perform similar edits across a file in a single pass. The practical workflow is to place carets at each location you want to change, then type or delete once and have the action applied at every caret.
This is useful for tasks such as renaming a local variable in several adjacent lines, adding a prefix to a list of values, or editing repeated markup. The main thing to watch is scope: before typing, confirm every caret is where you intend, because a single keystroke now affects all of them.
Snippets with placeholders and transformations
Commonly used pieces of text or code can be turned into snippets. According to the site, snippets support placeholders, transformations, and more, so they can adapt to the context in which they are used. In practice, a snippet can drop in a code block and let you tab through the parts that change, rather than retyping the fixed structure each time.
Snippets are a good fit for boilerplate you write often, such as function skeletons, import blocks, or repeated documentation patterns. The expected result is less retyping and more consistent structure; the caveat is that a snippet only saves time once it matches how you actually write that code.
Macros for repetitive work
TextMate macros eliminate repetitive work. You can save a macro for repeated use or record a scratch macro for immediate replay. A typical use is a short sequence of edits or cursor movements you perform over and over on similar blocks.
Record a scratch macro when the task is one-off, and save it when you expect to repeat the same sequence later. As with multiple carets, verify the macro on a small case first, since replaying a flawed sequence repeats the same mistake.
Supporting features that help while coding
The site also lists clipboard history, custom themes, live HTML/Markdown preview, foldable code blocks, and indented soft wrap. Clipboard history helps when you need to paste several previously copied items in sequence; foldable code blocks help you collapse sections you are not editing; live preview is useful when writing HTML or Markdown.
How the features fit together
| Feature | Best for | What to check |
|---|---|---|
| Multiple carets | Editing several similar locations at once | All carets are correctly placed before typing |
| Snippets | Reusing boilerplate with variable parts | The snippet matches your usual code structure |
| Macros | Repeating a short edit sequence | Test on a small case before replaying broadly |
| Clipboard history | Pasting multiple earlier copies | The item you want is the one you paste |
| Foldable code blocks | Reducing visual clutter in long files | Folded regions are not accidentally edited |
TextMate also supports scoped settings, so one file mixing languages or projects using different build systems can associate detailed scope selectors with key shortcuts and settings. For custom actions, its commands can be written in any language that works with stdin, stdout, and environment variables, with WebKit and a dialog framework available for more complex interfaces. If your main need is fast, repeated text manipulation on macOS, these features are the ones to evaluate first.