SQL Server Management Studio Keyboard Shortcuts
SQL Server Management Studio Keyboard Shortcuts
SQL Server Management Studio offers users two keyboard schemes. By default, it uses the SQL Server 2016
scheme, with keyboard shortcuts based on Microsoft Visual Studio 2010. Management Studio also offers a
keyboard scheme similar to the standard scheme from SQL Server 2008 R2. To change the keyboard
scheme or add additional keyboard shortcuts, on the Tools menu, click Options. Select the desired
keyboard scheme on the Environment, Keyboard page.
Note
To show only the headings, click Collapse All at the top of this page.
Move to the SQL Server Management Studio menu bar ALT ALT
Display the New File dialog box to create a file CTRL+N CTRL+N
Display the New Project dialog box to create a new project CTRL+SHIFT+N CTRL+SHIFT+N
Display the Open File dialog box to open an existing file CTRL+O CTRL+O
or
CTRL+SHIFT+G
Display the Open Project dialog box to open an existing project CTRL+SHIFT+O CTRL+SHIFT+O
Display the Add New Item dialog box to add a new file to the CTRL+SHIFT+A CTRL+SHIFT+A
current project
Display the Add Existing Item dialog box to add an existing file SHIFT+ALT+A SHIFT+ALT+A
to the current project
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 1/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Display the IDE navigator with the first document window CTRL+TAB No equivalent
selected
Moves the insertion point to the drop-down bar located CTRL+F2 No equivalent
at the top of the code editor when the editor is in Code
view or Server Code view
Display the IDE navigator with the first tool window ALT+F7 No equivalent
selected
or
F6 in the Database
Engine Query
Editor
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 2/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
or
SHIFT+F6 in the
Database Engine
Query Editor
or
CTRL+\, CTRL+T
Control the splitter bar that separates the Object Explorer TAB, then UP TAB, then UP
Details list view and Object Explorer Details property pane arrow or DOWN arrow or DOWN
to adjust the size of the display pane. arrow arrow
Display a smart tag menu of common commands for Web SHIFT+ALT+F10 No equivalent
server controls in the HTML designer
Display the Error List Window (Transact-SQL Editor only) CRTL+\, CTRL+E CRTL+\, CTRL+E
or
CTRL+\, E
Move to the next entry in the Error List window (Transact- CTRL+SHIFT+F12 CTRL+SHIFT+F12
SQL Editor only)
Display the previous page in the viewing history. Available ALT+LEFT ARROW No equivalent
only in the Web browser window
Display the next page in the viewing history. Available only ALT+RIGHT No equivalent
in the Web browser window ARROW
Move the cursor down one screen PAGE DOWN PAGE DOWN
Moves the cursor one word to the right CTRL+ RIGHT ARROW CTRL+ RIGHT ARROW
Moves the cursor one word to the left CTRL+ LEFT ARROW CTRL+ LEFT ARROW
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 4/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Moves the cursor to the bottom of the document CTRL+PAGE DOWN No equivalent
Select text from the cursor to the beginning of the CTRL+SHIFT+ CTRL+SHIFT+
document HOME HOME
Select text from the cursor to the end of the document CTRL+SHIFT+END CTRL+SHIFT+END
Select text from the cursor to the start of the current line SHIFT+HOME SHIFT+HOME
Moves the cursor to the start of the current line and SHIFT+ALT+HOME No equivalent
extends the column selection
Select text from the cursor to the end of the current line SHIFT+END SHIFT+END
Moves the cursor to the end of the line, extending the SHIFT+ALT+END No equivalent
column selection.
Select text down line by line starting from the cursor SHIFT+ DOWN SHIFT+ DOWN
ARROW ARROW
Moves the cursor down one line, extending the column SHIFT+
selection Ctrl+Shift+Del
Moves the cursor one character to the left and extends SHIFT+LEFT ARROW No equivalent
the selection
Moves the cursor one character to the left and extends SHIFT+ALT+LEFT No equivalent
the column selection ARROW
Moves the cursor one character to the right and extends SHIFT+RIGHT No equivalent
the selection ARROW
Moves the cursor one character to the righTt and SHIFT+ALT+RIGHT No equivalent
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 5/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Select text up line by line starting from the cursor SHIFT+UP ARROW SHIFT+UP ARROW
Move the cursor up one line, extending the selection SHIFT+ALT+ UP SHIFT+ALT+ UP
ARROW ARROW
Select the word containing the cursor, or the closest CTRL+W CTRL+W
word
Select the current location in the editor, back to the CTRL+= CTRL+=
previous location in the editor
Extend the selection to the top of the current window CTRL+SHIFT+ PAGE CTRL+SHIFT+
UP PAGE UP
Move the cursor to the last line in view, extending the CTRL+SHIFT+ PAGE CTRL+SHIFT+
selection DOWN PAGE DOWN
Extend the selection one word to the right CTRL+SHIFT+ RIGHT CTRL+SHIFT+
ARROW RIGHT ARROW
Extend the selection one word to the left CTRL+SHIFT+ LEFT CTRL+SHIFT+ LEFT
ARROW ARROW
Move the cursor to the right one word, extending the CTRL+SHIFT+ALT+ CTRL+SHIFT+ALT+
selection RIGHT ARROW RIGHT ARROW
Move the cursor to the left one word, extending the CTRL+SHIFT+ALT+ CTRL+SHIFT+ALT+
selection LEFT ARROW LEFT ARROW
Move the cursor to the next brace, extending the CTRL+SHIFT+] No equivalent
selection
Select the text from the current location of the cursor to CTRL+EQUAL SIGN No equivalent
the Navigate Backward (CTRL+MINUS SIGN (-)) location (=)
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 6/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Swaps the anchor and end points of the current selection CTRL+K, CTRL+A No equivalent
Moves the cursor to the first line in view, extending the CTRL+SHIFT+PAGE No equivalent
selection UP
Moves the cursor to the last line in view, extending the CTRL+SHIFT+PAGE No equivalent
selection DOWN
SQL
SQL Server
Action Server
2016
2008 R2
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 7/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Collapse tree nodes - (on the numeric keypad) - (on the numeric keypad)
Expand all tree nodes * (on the numeric keypad) * (on the numeric keypad)
Scroll the tree control up in the window CTRL+UP ARROW CTRL+UP ARROW
Scroll the tree control down in the window CTRL+DOWN ARROW CTRL+DOWN ARROW
or
ALT+BACKSPACE
or or
CTRL+Y CTRL+Y
or or
ALT+SHIFT+BACKSPACE ALT+SHIFT+BACK
SPACE
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 8/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
CTRL+SHIFT+E CTRL+E
or
ALT+X
Parse the selected portion of the query editor or the CTRL+F5 CTRL+F5
entire query editor if nothing is selected
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 9/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Copy the result grid and headers to the clipboard CTRL+SHIFT+C No equivalent
Display the Query Designer dialog from the query CTRL+SHIFT+Q No equivalent
editor window
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 10/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Swap the characters on either side of the cursor (Does not CTRL+T CTRL+T
apply to the SQL Editor.)
or or
SHIFT+ SHIFT+
BACKSPACE BACKSPACE
Insert the number of spaces configured for the editor TAB TAB
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 11/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Transpose the words on either side of the cursor (Does not CTRL+SHIFT+T CTRL+SHIFT+T
apply to the SQL Editor.)
Moves the line containing the cursor below the next line SHIFT+ALT+T No equivalent
Applies the indenting and space formatting for the CTRL+K, CTRL+D No equivalent
language specified on the Formatting pane of the
language in the Text Editor section of the Options dialog.
Available only in the text editor.
Correctly indents the selected lines of code based on the CTRL+K, CTRL+F No equivalent
surrounding lines of code
Remove the comment syntax from the current line CTRL+K, CTRL+U No equivalent
Collapses all outlining regions to show just the outermost CTRL+M, CTRL+A No equivalent
groups in the hierarchy
Hides the selected text. A signal icon marks the location of CTRL+M, CTRL+H No equivalent
the hidden text
Toggles all text sections previously marked as hidden CTRL+M, CTRL+L No equivalent
between the hidden and display states.
Toggles the currently selected hidden text section between CTRL+M, No equivalent
the hidden and display states CTRL+M
Removes the outlining information for the currently selected CTRL+M, CTRL+U No equivalent
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 12/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
region
or
SHIFT+F9
Toggle breakpoint F9 F9
Open the Edit breakpoint labels dialog. Only available in ALT+F9, L No equivalent
the Breakpoints window
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 13/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
or
CTRL+J
or
ALT+RIGHT ARROW
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 14/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Changes the IntelliSense filter level from the Common ALT+PLUS SIGN (+) No equivalent
tab to the All tab.
Changes the IntelliSense filter level from the All tab to ALT+PERIOD (.) No equivalent
the Common tab.
CTRL+SHIFT+TAB CTRL+SHIFT+TAB
Back, display the previous page in the viewing history ALT+LEFTARROW ALT+LEFTARROW
Forward, display the next page in the viewing history ALT+RIGHTARROW ALT+RIGHTARROW
Display the New File dialog box to create a new file CTRL+N CTRL+N
Display the New Project dialog box to create a new CTRL+SHIFT+N CTRL+SHIFT+N
project
Display the Open File dialog box to open an existing file CTRL+O CTRL+O
Help F1 F1
or
SHIFT+F1
Display the SQL Server Resource Center Web page CTRL+ALT+F2 No equivalent
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 16/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Displays the list of references for the selected symbol. SHIFT+F12 No equivalent
Start incremental search. Type the characters to search for or CTRL+I CTRL+I
press CTRL+I to search for characters from the previous search
Find the next occurrence of the currently selected text CTRL+F3 CTRL+F3
Find the previous occurrence of the currently selected text CTRL+SHIFT+F3 CTRL+SHIFT+F3
Reverse incremental search so it starts at the bottom of the file CTRL+SHIFT+I CTRL+SHIFT+I
and searches to the top
Select or clear the Search up option in Find and Replace ALT+F3, B ALT+F3, B
Select or clear the Find whole word option in Find and Replace ALT+F3, W ALT+F3, W
Selects or clears the Wildcard option in Find and Replace ALT+F3, P ALT+F3, P
Place the caret in the Find/Command box of the Standard CTRL+/ No equivalent
toolbar
SQL Server
Action SQL Server 2016
2008 R2
Cut (delete the currently selected item and place it to the CTRL+X CTRL+X
Clipboard)
or or
SHIFTRLT+DELETE SHIFT+DELETE
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 17/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Cuts all of the selected lines, or the current line if CTRL+L No equivalent
nothing is selected.
or
CTRL+SHIFT+L
or or
CTRL+INSERT CTRL+INSERT
or or
SHIFT+INSERT SHIFT+INSERT
Pastes an item from the Clipboard Ring at the insertion CTRL+SHIFT+V No equivalent
point and automatically selects the pasted item
or
CTRL+enseSHIFT+INSERT
Refresh No equivalent F5
Move between the Select logs pane and the Log file No equivalent F6
summary pane
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 18/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
Refresh F5 F5
Refresh F5 F5
Define filter F6 F6
Apply filter F7 F7
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 19/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
When in the results pane, moves focus to the tool strip docked at CTRL+G CTRL+G
the bottom of the designer
SQL Server
Action SQL Server 2016
2008 R2
Move the selected control down in increments of 8 on the DOWN ARROW No equivalent
design surface
Move the selected control left in increments of 8 on the LEFT ARROW No equivalent
design surface
Move the selected control right in increments of 8 on the RIGHT ARROW No equivalent
design surface
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 20/21
7/27/2015 SQL Server Management Studio Keyboard Shortcuts
ARROW
Decreases the height of the selected control in increments of SHIFT+UP ARROW No equivalent
8
See Also
Customize Menus and Shortcut Keys
Community Additions
© 2015 Microsoft
https://msdn.microsoft.com/en-us/library/ms174205(d=printer).aspx 21/21