Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 improve ctrl_]
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Mar 08 2004 :  12:37:06 PM  Show Profile
i have ctrl_] mapped to Edit.GotoBrace, the default mapping i believe

with the code:

    if(a == b) {
        // do something
    }


where the lines are indented with tab i can put my cursor at three different spots on the 3rd line. the cursor can be at the start of the line, before the close bracket, or after the close bracket.

if i press ctrl_] then VS .NET 2003 only jumps to the matching bracket if i am next to it (before or after).

it is obvious to me that if i press ctrl_] and there is only one character on the line, and this is some form of bracket, then i want to jump to the matching bracket.

even better, if i am on a line with more compex code, eg:


    if(a == b || c == d || e == f)
            ^


and the ^ marks the current cursor position, then it would be nice to jump to first the open bracket, and then the close bracket with ctrl_]

the rule is to look for the nearest "jump character" on the current line, and use it :)

vim does this, and i am starting to miss it, since now i have to do extra key presses to move to the bracket before i can jump.

zen is the art of being at one with the two'ness

[email protected]
Senior Member

28 Posts

Posted - Mar 09 2004 :  04:02:29 AM  Show Profile
I'm think this can be done without too much trouble.
This, because the brackets surrounding the scope of my caret are already highlighted (i.e., VAX knows their positions).

But, you could of course use <ALT-UP> and <ALT-DOWN> for this.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Mar 09 2004 :  06:45:03 AM  Show Profile
*ooooh* i only normally use alt_up and alt_down to move up and down one function at a time. i hadnt really realised it did that

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000