Match Brace

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Match Brace

Postby martinog » Wed Feb 14, 2007 8:02 pm

Hi All,

Is there any way to do the 'match brace' thing without selecting the text in between? I simply want to quickly position the cursor at the matching brace, not select anything. Also, if I want to quickly go back to the previous brace, can I do that?

I'm coming from vi & ms visual c++. Both of these had a 'match brace' function that did what I want. I could position the cursor at a opening or closing brace, then hitting the key-command takes me to the matching brace *without selecting anything* and *I can easily go back & forth from opening brace to closing brace*.

Just wondering if I'm the only one who's struggling with Ultra Edit's implementation of 'matching brace' functionality.

Thanks.
User avatar
martinog
Newbie
 
Posts: 2
Joined: Wed Feb 14, 2007 12:00 am

Re: Match Brace

Postby mrainey56 » Wed Feb 14, 2007 8:49 pm

Try assigning this macro to a keystroke of your choice.

InsertMode
ColumnModeOff
IfCharIs "["
MatchBrace
Key LEFT ARROW
ExitMacro
EndIf
IfCharIs "("
MatchBrace
Key LEFT ARROW
ExitMacro
EndIf
IfCharIs "{"
MatchBrace
Key LEFT ARROW
ExitMacro
EndIf
IfCharIs "]"
MatchBrace
Key RIGHT ARROW
Key LEFT ARROW
ExitMacro
EndIf
IfCharIs ")"
MatchBrace
Key RIGHT ARROW
Key LEFT ARROW
ExitMacro
EndIf
IfCharIs "}"
MatchBrace
Key RIGHT ARROW
Key LEFT ARROW
ExitMacro
EndIf
User avatar
mrainey56
Master
Master
 
Posts: 212
Joined: Tue Jul 27, 2004 11:00 pm
Location: Spartanburg, South Carolina

Re: Match Brace

Postby martinog » Thu Feb 15, 2007 4:50 pm

Thanks alot mrainey56. I'll try it :)
User avatar
martinog
Newbie
 
Posts: 2
Joined: Wed Feb 14, 2007 12:00 am


Return to UltraEdit General Discussion