开发者

VS 2010 - is there a way to implement a pop-context button, similar to what was available in vs 6

开发者 https://www.devze.com 2023-02-13 10:20 出处:网络
The context is this. I have right clicked on a functi开发者_运维问答on name and gone to definition.

The context is this.

I have right clicked on a functi开发者_运维问答on name and gone to definition.

I have examined the information there and which to return to my previous source file/position.

In vs 6, the browse toolbar contained a pop context button that would do this job.

I am looking for a way to replicate that functionality.

Thanks

Evil.


The keyboard shortcut that I use is Ctrl-.

In the menu, you can find it at View -> Navigate Backward.


I know this is old, but is still very relevant and has a better solution.

The problem with Navigate Backward (previous answer) is it takes you back to any previous navigation whether by Go to definition, mouse, PgUp, PgDn, etc.

Popping the browse context is different, and navigates you back to where you originally requested the Go to definition or any of the other browse operations, regardless of any other navigation you did since.

The Pop Context keyboard shortcut is Ctrl+(* on the numeric keypad).
I like to make a button for it -
steps are as follow

  • go to customise for the toolbar
  • add/remove buttons
  • Add command
  • choose view -> Pop browse context.
0

精彩评论

暂无评论...
验证码 换一张
取 消