Bala
Bala

Reputation: 277

Go to declaration in Visual Studio

When we right click and click "Go to declaration" in Visual Studio, it navigates to that method.
What is the hotkey to get back where we came from?

Upvotes: 10

Views: 12707

Answers (4)

rouf
rouf

Reputation: 11

Vs2022, Tools/Options/Keyboard Select "Edit.PreviousMethod" or "Edit.NextMethod"

Shortcuts for selected command = Ctrl + UpArrow (Text Edit)

Idem for NextMethod

Upvotes: 0

Pabuc
Pabuc

Reputation: 5638

Just another hint: F12 goes to declaration, Shift + F12 finds all references.

Upvotes: 13

Andrew Orsich
Andrew Orsich

Reputation: 53685

Ctrl + - will help you....! ;)

Upvotes: 14

cjk
cjk

Reputation: 46415

If you have a mouse with a back button, that will take you back too. You can then use the forward button to navigate forward again.

Upvotes: 0

Related Questions