Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to move cursor to last edit position in Visual Studio

Tags:

In Visual Studio, is there a keyboard shortcut to navigate (move cursor) to the last edited position (like PyCharm's Ctrl+Shift+Backspace)?

The CTRL + - shourtcut moves to the last position (not the last edited position), which is less useful for me.

like image 778
Yariv Avatar asked Dec 02 '13 09:12

Yariv


People also ask

How do I move the cursor to the end of line in Visual Studio?

Add cursors to line ends Mine is Visual Studio Code and the exact command for this is "Add cursors to line ends". The shortcut key is Alt + Shift + I (Windows) or Command + Shift + l (Mac).

How do you get to the last position in Visual Studio?

Access. By default, Alt+Left navigates back, and if you remove the Alt+Right shortcut for Edit. CompleteWord in Microsoft Visual Studio, Alt+Right navigates forward.


1 Answers

This shortcut was added in VS2017 version 15.8:

Ctrl + Shift + Backspace

It's near impossible to find via google, I just stumbled across it when reading the VS news and release notes.

Go To Last Edited Location

We all know the feeling of starting to write a feature and then realizing we need some more information from elsewhere in the solution. So, we open another file from Solution Explorer or Go to Definition in a few places and suddenly, we’re far off from where we started with no easy way back unless you remember the name of file you were working in originally. In Visual Studio 2017 version 15.8, you can now go back to your last edited location via Edit > Go To > Go To Last Edit Location (Ctrl + Shift + Backspace).

https://blogs.msdn.microsoft.com/visualstudio/2018/08/30/improving-your-productivity-in-the-visual-studio-editor/

like image 156
Tikall Avatar answered Sep 21 '22 08:09

Tikall