Reputation: 277
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
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
Reputation: 5638
Just another hint: F12 goes to declaration, Shift + F12 finds all references.
Upvotes: 13
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