Search code examples
textmate

"Go to matching brace" in TextMate 1.5


Is there a way to go to a matching brace in TextMate 1.5?

I can't just collapse the block because it's a badly formatted file, but the matching brace might be successfully recognized anyway. I just need to go to it (since it's distant more than 1-screen).


Solution

  • In TextMate 1.x you can select the contents of the surrounding braces using ⇧⌘B. After this you can use the arrow keys to go the start/end of the selection. You could record a macro to make this a single action.

    In TextMate 2 going to matching brace can be done with ⌃↑ and ⌃↓. These keys can also be used with shift () to select to matching brace.