daisy
daisy

Reputation: 23501

Visual Studio 2008 , how to jump a function quickly?

I wanted to jump a function quickly when i saw a call of that , in Qt Creator you could simply click on foo , and it will jump to the right file , and the right line

int ret = foo();

How can i do this in VS ?

Thanks

Upvotes: 1

Views: 2132

Answers (2)

Steve B
Steve B

Reputation: 37660

Press F12 when the cursor is on the symbol you want to go to (actually depending on your keyboard config).

[Edit] The command you have to map is Edit.GoToDefinition, if you want to setup something else than F12 [/Edit]

Right click and choose "Go to definition"

Or use the Go To Definition extention to allow Ctrl+Click to go to definition (I love this extention :p )

Upvotes: 5

Itamar Katz
Itamar Katz

Reputation: 9645

Use right click on the function call -> go to definition, or put the curser on the function call and press F12

Upvotes: 0

Related Questions