visual-studio VS 2010:如何使“下一个选项卡”、“上一个选项卡”键盘快捷键正常工作?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3780925/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
VS 2010: How do I get "next tab", "prev tab" keyboard shortcut working?
提问by Trevor Boyd Smith
How do I get "next tab", "prev tab" keyboard shortcuts to work in Visual Studios 2010?
如何获得“下一个选项卡”、“上一个选项卡”键盘快捷键以在 Visual Studios 2010 中工作?
(For a more precise description of the functionality I need please see the firefox/chrome/etc and how they do their "ctrl-pgdn" and "ctrl-pgup" keyboard shortcuts).
(有关我需要的功能的更准确描述,请参阅 firefox/chrome/etc 以及它们如何使用“ctrl-pgdn”和“ctrl-pgup”键盘快捷键)。
This should be extrememly easy... and yet I can't seem to figure it out.
这应该非常容易......但我似乎无法弄清楚。
NOTE:
笔记:
I do know that there is a "ctrl-tab" that is similar... but it only scrolls through the "most recently used list" which is different. I don't care about "the most recently used list". I just want to go to the right/left tab.
我确实知道有一个类似的“ctrl-tab”……但它只滚动浏览不同的“最近使用的列表”。我不在乎“最近使用的列表”。我只想转到右/左选项卡。
采纳答案by Pablo
You should map the Window.NextDocumentWellTaband not View.NextTaband remove it from any other functions its assigned to. Only mapping it will not work, you also need to unmap from anything else its being used on, apparently.
您应该映射Window.NextDocumentWellTaband notView.NextTab并将其从其分配给的任何其他功能中删除。仅映射它是行不通的,显然,您还需要从使用它的任何其他地方取消映射。
This is what my keyboard configuration looks like:

这是我的键盘配置的样子:

Looked into this some more, and it turns you need to install the Productivity Tools. That gives you that NextDocumentWellTab function.
再研究一下,发现您需要安装Productivity Tools。这为您提供了 NextDocumentWellTab 功能。
回答by aardvarkk
Under Visual Studio 2010 Professional, this keyboard shortcut goes by the name Window.PreviousDocumentWindowand Window.NextDocumentWindow.
在 Visual Studio 2010 Professional 下,此键盘快捷方式由名称Window.PreviousDocumentWindow和Window.NextDocumentWindow.
Important Note: By default, Ctrl-PgUpand Ctrl-PgDownare assigned to Edit.ViewTopand Edit.ViewBottomrespectively, so make sure to remove the existing keyboard assignmentbefore trying out your new assignment. If you don't, the keyboard commands you enter will continue to be interpreted as the most "specific" shortcut (Edit.ViewTopor Edit.ViewBottom) since you're most likely trying this out in the Edit view!
重要说明:默认情况下,Ctrl-PgUp和Ctrl-PgDown分别分配给Edit.ViewTop和Edit.ViewBottom,因此请确保在尝试新分配之前删除现有的键盘分配。如果您不这样做,您输入的键盘命令将继续被解释为最“特定”的快捷方式(Edit.ViewTop或Edit.ViewBottom),因为您最有可能在“编辑”视图中进行尝试!

