How to navigate back to the last cursor position in Visual Studio?

For Changing the setting in Visual Studio 2019:

enter image description here

  1. Search for view.navigate
  2. CHOOSE "Text Editor" from the "Use new shortcut in:" drop down menu
  3. 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:

enter image description here


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!


Visual Studio 'Navigate Back' shortcut

It Will not work for red color (-) key. For me it only works for blue color combination.