views:

451

answers:

6

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?

A: 

Ctrl+TAB

That switches between all open documents.

Paul Alexander
This works for visual studio, what about Management Studio? :)
Dave
+1  A: 

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

Steve Dignan
NextSplitPane will cycle among the splits, I think.
shahkalpesh
+3  A: 

F6 is your friend.

Fredrik Mörk
what about sql server management studio?
Dave
To my surprise, in SQL Server Management Studio the behavior is somewhat different; F6 will jump between the query editor and the message window in the bottom. It will not jump between the panes in a split query window. In VS F6 will jump between source/design panes for a aspx or html file, as well as splits in code windows.
Fredrik Mörk
Thanks for looking in to this further
Dave
A: 

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

Ahmad Mageed
+1  A: 

F6 vs2008 c# is NOT my friend for this PANE issue ... F6 is "Build Solution"

Ctrl+TAB and Ctrl+F6 also fail to jump between PANEs.

http://www.dofactory.com/ShortCutKeys/ShortCutKeys.aspx : claims F6 Moves to the next pane of a split pane view of a single document Shift-F6 Moves to the previous pane of a document in split pane view

is it possible that ASP.NET MVC v1.0 install usurped F6? (i do not know) is it possible that F6 is a vb (very bad) behaviour not found in c# vs settings (i do not know)

There are a few differences between settings in vs ... i do not know the cause ... might be language choice, might be vs express versus other forms ... ??????? i do not know why these inconsistencies exist.

+1  A: 

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.

Simon D
Most awesome thanks!
Dave
Neither this nor `F6` key is working for me in VS2008. I checked the Key board shortcut and `F6` is correctly assigned to `Window.NextSplitPane`. Even clicking on the toolbar button as suggested above is not working. Any ideas?
Ismail
Add another question, try a different keyboard shortcut, or try writing a macro. http://codeidol.com/csharp/visual-studio-2005/The-Visual-Studio-Automation-Object-Model/Windows/ may help.
Simon D