views:

17

answers:

1

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?

+2  A: 

Ctrl+- should do the trick which is the standard keyboard shortcut for navigate backwards. Or using the navigation buttons in the standard toolbar.

Edit: To change the keyboard shortcut, go to Tools > Options > Environment > Keyboard and change the shortcut for View.NavigateBackward.

PMN
BTW the minus on the numeric pad does not seem to work, only the one near the backspace key.
thelost
Yes it does, is there an easy way to change that combination to something shorter is there?
pm_2
Tools > Options > Environment > Keyboard and change the shortcut for View.NavigateBackward
PMN