Author |
Topic |
|
roel
New Member
4 Posts |
Posted - Oct 24 2005 : 05:53:56 AM
|
Hi,
What I'd like to do is navigate my code like I used to when I used vim in combination with ctags: when the cursor is on a function name and I press ctrl-] (or another, configurable key), I would jump to the implementation of that function (which is basically the same as right-click and selecting 'go to definition'). When pressing ctrl-t, the cursor would jump back to where it came from before the last ctags jump was made. This way it's very easy to navigate a couple of levels into code and get back to where you started with a couple of keypresses. The default Visual Studio 'go to definition/declaration' is very slow, when I select it I have to wait a couple of seconds (maybe while it's building an index?) plus there is (afaik) no way to 'jump back'. Can Visual Assist do this? If so, where do I configure it to use ctrl-] and ctrl-t to jump in/out? Thanks.
cheers,
roel
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Oct 24 2005 : 8:41:50 PM
|
The right-click 'go to definition' is a VS feature, not a VA feature. VA has a similar feature, by default mapped to CTRL-G that is MUCH faster (typically). To navigate back to where you came from, you can use the VA "navigate back" feature in VS 6, and the VS "navigate back" in VS 7+.
Now, both the VA and VS navigation methods will take you to more than just the previous jump, but you should be able to navigate like you desire (mostly) with what is built-in to VS and VA.
|
Joe Pizzi |
|
|
roel
New Member
4 Posts |
Posted - Oct 25 2005 : 06:16:58 AM
|
Aha yes this seems to do almost what I want (the 'navigate back' makes a few extra stops like you said but it's close enough for me :) ) Thanks!
cheers,
roel
|
|
|
|
Topic |
|
|
|