Match Brace

Match Brace

2
NewbieNewbie
2

    Feb 15, 2007#1

    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.

    206
    MasterMaster
    206

      Feb 15, 2007#2

      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
      Software For Metalworking
      http://closetolerancesoftware.com

      2
      NewbieNewbie
      2

        Feb 15, 2007#3

        Thanks alot mrainey56. I'll try it :)