visual-studio 在visual studio/management studio中是否有在拆分窗格之间切换的快捷键?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1034392/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:41:33  来源:igfitidea点击:

Is there a shortcut key to switch between split panes in visual studio/management studio?

visual-studiossms

提问by Dave

When I have a file open in visual studio/sql server management studio and have it split in to two panes, I'd like to be able to switch between the panes without having to reach for the mouse. Does anyone know if a shortcut key exists for this?

当我在 Visual Studio/sql server management studio 中打开一个文件并将其分成两个窗格时,我希望能够在窗格之间切换而无需触碰鼠标。有谁知道是否存在快捷键?

采纳答案by Simon D

In SSMS: right-click toolbars, customize. Under categories, select Window, then under Commands select "Next Split Pane". Drag to toolbar. Right-click and change name to "Next Split P&ane". You can now use alt-a to change split pane.

在 SSMS 中:右键单击工具栏,自定义。在类别下,选择窗口,然后在命令下选择“下一个拆分窗格”。拖动到工具栏。右键单击并将名称更改为“Next Split P&ane”。您现在可以使用 alt-a 更改拆分窗格。

回答by Fredrik M?rk

F6is your friend.

F6是你的朋友。

回答by Steve Dignan

I think you can assign this by going to Tools -> Options -> Keyboardand searching for SplitPane. You should be able to assign shortcut keys for the following values:

我认为您可以通过转到Tools -> Options -> Keyboard并搜索SplitPane来分配它。您应该能够为以下值分配快捷键:

Window.NextSplitPane
Window.PreviousSplitPane

Window.NextSplitPane
Window.PreviousSplitPane

回答by Ahmad Mageed

CTRL+F6 will cycle through your files and across panes.

CTRL+F6 将在您的文件和窗格之间循环。

回答by Wendy

On Microsoft SQL Server Management Studio (SSMS) 2012, I figured out that it is the combination of Ctrl+Shift+UpArrow(or DownArrow). :-)

在 Microsoft SQL Server Management Studio (SSMS) 2012 上,我发现它是 Ctrl+Shift+UpArrow(或 DownArrow)的组合。:-)

回答by cfm

This was not easy for me for some reason. This method finally worked (similar to Steve Dignan's answer above but I don't have enough rep to comment yet).

出于某种原因,这对我来说并不容易。这种方法终于奏效了(类似于上面史蒂夫·迪格南的回答,但我还没有足够的代表发表评论)。

In VS 2012, Tools, Options, Environment, Keyboard. "Apply the following additional keyboard scheme" set to "Visual C# 2005". "Use new shortcut in" set to 'Global'. Enter "splitpane" in "Show commands containing" to get only the 2 desired commands. Select the first one and remove any shortcuts already assigned. Click inside the "Press shortcut keys" box and use "Ctrl + Alt + Up Arrow" for prev and down arrow for next. If either of those shortcut chords are currently used by something else, you may need to search on that command and remove it from there. Then come back to the split pane commands and Assign. Don't forget to close VS before you open another instance of it.

在 VS 2012 中,工具、选项、环境、键盘。“应用以下附加键盘方案”设置为“Visual C# 2005”。“使用新的快捷方式”设置为“全局”。在“显示包含的命令”中输入“splitpane”以仅获取 2 个所需的命令。选择第一个并删除任何已分配的快捷方式。在“按快捷键”框内单击并使用“Ctrl + Alt + 向上箭头”作为上一个,使用向下箭头作为下一个。如果这些快捷和弦中的任何一个当前被其他东西使用,您可能需要搜索该命令并将其从那里删除。然后回到拆分窗格命令和分配。在打开另一个实例之前,不要忘记关闭 VS。

回答by Nicolas

For Visual Studio 2010 (maybe others as well) F6will work to jump between split panes if Tools -> Options -> Keyboarddoes notuse the Visual C# 2005keyboard layout additionally (which was the case for me for I-don't-know-why reasons - maybe I said yes to an installer/first-start question a long time ago).

对于 Visual Studio 2010(也可能是其他人),F6如果工具 -> 选项 -> 键盘不另外使用Visual C# 2005键盘布局(我不知道的情况就是这种情况),则可以在拆分窗格之间跳转- 为什么 - 也许我很久以前就对安装程序/首次启动的问题说“是”)。

Of course you will no longer be able to build your project with F6afterwards. ;-)

当然,之后您将无法再构建您的项目F6。;-)

回答by Icaroo

For Visual Studio 2012: Tools -> Options -> Keyboard -> search by Window.Split and add a new shortcut.

对于 Visual Studio 2012:工具 -> 选项 -> 键盘 -> 按 Window.Split 搜索并添加新的快捷方式。