IDE question (for a VB6 convert)

S

Scott M. Lyon

I'm a former VB6 programmer, working now with VB.NET 2003. I decided it's
time for me to start getting used to the Visual Studio .NET key shortcuts
(instead of the VB6 ones, which yes, I know I can still use via the
profile).


Unfortunately, I've been unable to find the hotkey for one thing: "Go to
Definition".


In VB6, I was able to click on a function call, hit Shift-F2, and it'd take
me right to that function (if I had the source up for it and references were
set up and all).


Now, with VB.NET, the only way I can do that is by right-clicking, mousing
down to "Go To Definition", and clicking again. I'd love to have a keyboard
shortcut for that again, but I'm at a loss to figure out what shortcut that
is.


All I know is that it's not still Shift-F2.


Does anyone know if there's a hotkey for that?


Thanks!
 
S

Shane Story

Hi Scott. In the future you might try F1 for help and then type in "go to
definition"

That's what I did. Here is the answer:
Navigating to code elements using Go To Definition
Use the command Go To Definition to immediately navigate to the parent
procedure for a method call or variable definition. For example, if you have
a procedure called MyProc() and later make a call to MyProc(), you could
navigate directly to the procedure using Go To Definition.

To go to a procedure or variable definition

1.. Select the variable or procedure call.
2.. Press F12.
You are taken to the procedure or variable definition. If you want to return
to the variable or procedure call, press the Navigate Backward button.

If the definition lies outside your project, the item displays in the Object
Browser.

====================================================
 
H

Herfried K. Wagner [MVP]

Scott,

Scott M. Lyon said:
Now, with VB.NET, the only way I can do that is by right-clicking, mousing
down to "Go To Definition", and clicking again. I'd love to have a
keyboard shortcut for that again, but I'm at a loss to figure out what
shortcut that is.

"Tools" -> "Options" -> "Environment" -> "Keyboard" -> ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top