How to navigate back to the last cursor position in Visual Studio?
For Changing the setting in Visual Studio 2019:
- Search for view.navigate
- CHOOSE "Text Editor" from the "Use new shortcut in:" drop down menu
- Select your shortcut
Global doesn't catch for this.
ctrl
+ -
(dash) navigates backward.
ctrl
+ shift
+ -
(dash) navigates forward.
These settings can be found under Environment -> Keyboard:
According to Visual C# 2008 Keybinding Reference Poster it is Ctrl + -. The name of the specific keybinding is View.NavigateBackward.
PS: While researching I also found that Ctrl + . is the same as Shift + Alt + F10. Nice!
It Will not work for red color (-) key. For me it only works for blue color combination.