'Visual Studio IDE - return to previous
In VS2008, is there a way to return to the cursor’s previous position after pressing F12 to jump to a function definition? I know this is possible with some add-ons, but if there a way to get the core product to do this?
Solution 1:[1]
There was a command which did exactly you asking for: View.PopBrowseContext. It always returns you to the very place where you have pressed F12. It doesn't take in account any movements or edits you did after you have pressed F12.
By default in C# layout it is mapped to Ctrl+Chift+8, but you can assign it to any hotkey you want.
BTW, in VS2015 they decided to get rid of this command.
Update: The extension I've made to emulate this command is available on the marketplace now: PopContext.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
