Visual Studio 2010 keyboard shortcut to open context menu on document tab

不羁岁月 提交于 2020-01-14 09:45:08

问题


Is there a keyboard shortcut to show the context menu for a document tab - same as document tab right click?

Note: not the same as shift + F10 which brings up the main context menu.

thanks


回答1:


I was looking for this thing for quite some time and I accidently opened this menu today using my keyboard. The command is "Window.ShowDockMenu". The default key binding (at least in VS 2012) is "alt + -".




回答2:


What, in particular, are you looking to be able to do?

By default I don't think that there is one to open the document tab context window, but you can map custom shortcuts for a lot of the actions that are available under this context window.

To map a custom shortcut for Close All, for example, navigate to:

Tools > Options > Keyboard

Enter Window.CloseAllDocuments in the Show commands containing: textbox, and choose a shortcut. There are thousands of commands here, so chances are you'll find one that does what you want.

Also check out this plugin, which might have some of the features you're looking for.



来源:https://stackoverflow.com/questions/9033440/visual-studio-2010-keyboard-shortcut-to-open-context-menu-on-document-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!