Shortcut to Navigate back in visual studio 2010 an

2020-06-08 18:00发布

问题:

I'm just getting back to visual studio 2010 after using phpStorm(jetBrain's product) and I'm missing all the nice shortcut keys. I've installed visual studio 2010 with resharper but am still missing some of the nice features. I can't figure out how to "navigate back" in my code. For example if I'm navigating to various method definitions and then I want to navigate back to where I just was how do I do this?

I believe that in phpstorm I would press Ctrl+Alt+Left to go navigate back and Ctrl+Alt+Right if I wanted to go forward. It would keep a history so I could just keep going back as far as I wanted. Please help. I miss this feature.

回答1:

By default, you can navigate back with Ctrl+- and navigate forward with Ctrl+Shift+-.

If you want to change these shortcuts, go to Tools->Options...->Environment->Keyboard, then search for the commands called View.NavigateBackward and View.NavigateForward, and assign them new keyboard shortcuts.