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

StackOverflow https://stackoverflow.com/questions/1034392

  •  06-07-2019
  •  | 
  •  

Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

F6 is your friend.

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

Window.NextSplitPane
Window.PreviousSplitPane

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

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.

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

For Visual Studio 2010 (maybe others as well) F6 will work to jump between split panes if Tools -> Options -> Keyboard does not use the Visual C# 2005 keyboard 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).

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top