SQL Server Management Studio Keyboard Shortcuts PDF
SQL Server Management Studio Keyboard Shortcuts PDF
SQL Server Management Studio offers users two keyboard schemes. By default, it uses the SQL Server 2012 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 current project CTRL+SHIFT+A CTRL+SHIFT+A
Display the Add Existing Item dialog box to add an existing file to the current SHIFT+ALT+A SHIFT+ALT+A
project
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 1/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
SQL Server
Action SQL Server 2012
2008 R2
Close a menu or dialog box, cancels an operation in progress, or focuses on ESC ESC
the current document window
Display the IDE navigator with the first document window selected CTRL+TAB No equivalent
Moves the insertion point to the drop‐down bar located at the top of the CTRL+F2 No equivalent
code editor when the editor is in Code view or Server Code view
Display the IDE navigator with the first tool window selected ALT+F7 No equivalent
or
F6 in the Database
Engine Query Editor
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 2/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
or
SHIFT+F6 in the
Database Engine
Query Editor
Move to the previous pane of a split pane view of a single document SHIFT+F6 F6
or
CTRL+\, CTRL+T
Toggle between Object Explorer Details list view and Object Explorer Details F6 F6
property pane.
Control the splitter bar that separates the Object Explorer Details list view TAB, then UP arrow or TAB, then UP
and Object Explorer Details property pane to adjust the size of the display DOWN arrow arrow or DOWN
pane. arrow
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 3/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Display a smart tag menu of common commands for Web server controls in SHIFT+ALT+F10 No equivalent
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‐SQL Editor only﴿ CTRL+SHIFT+F12 CTRL+SHIFT+F1
2
Display the previous page in the viewing history. Available only in the Web ALT+LEFT ARROW No equivalent
browser window
Display the next page in the viewing history. Available only in the Web ALT+RIGHT ARROW No equivalent
browser window
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
Moves the cursor to the bottom of the document CTRL+PAGE DOWN No equivalent
Select text from the cursor to the beginning of the document CTRL+SHIFT+ HOME CTRL+SHIFT+ 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 extends the column SHIFT+ALT+HOME No equivalent
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 column selection. SHIFT+ALT+END No equivalent
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 selection SHIFT+
Ctrl+Shift+Del
Moves the cursor one character to the left and extends the selection SHIFT+LEFT ARROW No equivalent
Moves the cursor one character to the left and extends the column SHIFT+ALT+LEFT No equivalent
selection ARROW
Moves the cursor one character to the right and extends the selection SHIFT+RIGHT No equivalent
ARROW
Moves the cursor one character to the righTt and extends the column SHIFT+ALT+RIGHT No equivalent
selection ARROW
Select text up line by line starting from the cursor SHIFT+UP ARROW SHIFT+UP ARROW
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 5/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Move the cursor up one line, extending the selection SHIFT+ALT+ UP SHIFT+ALT+ UP
ARROW ARROW
Extend selection down one page SHIFT+ PAGE DOWN SHIFT+ PAGE DOWN
Select the word containing the cursor, or the closest word CTRL+W CTRL+W
Select the current location in the editor, back to the previous location in CTRL+= CTRL+=
the editor
Extend the selection to the top of the current window CTRL+SHIFT+ PAGE CTRL+SHIFT+ PAGE
UP UP
Move the cursor to the last line in view, extending the selection CTRL+SHIFT+ PAGE CTRL+SHIFT+ PAGE
DOWN DOWN
Extend the selection one word to the right CTRL+SHIFT+ RIGHT CTRL+SHIFT+ RIGHT
ARROW 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 selection CTRL+SHIFT+ALT+ CTRL+SHIFT+ALT+
RIGHT ARROW RIGHT ARROW
Move the cursor to the left one word, extending the selection CTRL+SHIFT+ALT+ CTRL+SHIFT+ALT+
LEFT ARROW LEFT ARROW
Move the cursor to the next brace, extending the selection CTRL+SHIFT+] No equivalent
Select the text from the current location of the cursor to the Navigate CTRL+EQUAL SIGN No equivalent
Backward ﴾CTRL+MINUS SIGN ﴾‐﴿﴿ location ﴾=﴿
Go back to the previous document or window in the navigation history CTRL+MINUS SIGN No equivalent
﴾‐﴿
Go forward to the next document or window in the navigation history CTRL+SHIFT+MINUS No equivalent
SIGN ﴾‐﴿
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 selection CTRL+SHIFT+PAGE No equivalent
UP
Moves the cursor to the last line in view, extending the selection CTRL+SHIFT+PAGE No equivalent
DOWN
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 6/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
SQL Server
Action SQL Server 2012
2008 R2
If the current bookmark is in a folder, moves to the next bookmark in the folder. CTRL+SHIFT+K, No
Bookmarks outside the folder are skipped. CTRL+SHIFT+N equivalent
If the bookmark is not in a folder, moves to the next bookmark at the same level.
If the current bookmark is in a folder, moves to the next bookmark in the folder. CTRL+SHIFT+K, No
Bookmarks outside the folder are skipped. CTRL+SHIFT+P equivalent
If the bookmark is not in a folder, moves to the next bookmark at the same level.
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
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 7/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
or
ALT+BACKSPACE
or or
CTRL+Y CTRL+Y
or or
ALT+SHIFT+BAC ALT+SHIFT+BAC
KSPACE K SPACE
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 8/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Run the selected portion of the query editor or the entire query editor if nothing F5 F5
is selected
or or
CTRL+SHIFT+E CTRL+E
or
ALT+X
Parse the selected portion of the query editor or the entire query editor if nothing CTRL+F5 CTRL+F5
is selected
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 9/21
3/24/2017 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 editor window CTRL+SHIFT+Q No equivalent
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+3 CTRL+3
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+4 CTRL+4
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+5 CTRL+5
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+6 CTRL+6
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+7 CTRL+7
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+7 CTRL+7
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+8 CTRL+8
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+9 CTRL+9
Keyboard, Query Shortcuts dialog
Run the stored procedure configured for this shortcut in the Tools, Options, CTRL+0 CTRL+0
Keyboard, Query Shortcuts dialog
Swap the characters on either side of the cursor ﴾Does not apply to the SQL Editor.﴿ CTRL+T CTRL+T
or or
SHIFT+ SHIFT+
BACKSPACE BACKSPACE
Delete whitespace in the selection, or deletes whitespace adjacent to the cursor if there is CTRL+K, C No
no selection equivalent
Insert the number of spaces configured for the editor TAB TAB
Transpose the words on either side of the cursor ﴾Does not apply to the SQL Editor.﴿ CTRL+SHIFT+ CTRL+SHIFT+
T T
Moves the line containing the cursor below the next line SHIFT+ALT+T No
equivalent
Applies the indenting and space formatting for the language specified on the CTRL+K, No
Formatting pane of the language in the Text Editor section of the Options dialog. CTRL+D equivalent
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 11/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Correctly indents the selected lines of code based on the surrounding lines of code CTRL+K, No
CTRL+F equivalent
Collapses all outlining regions to show just the outermost groups in the hierarchy CTRL+M, No
CTRL+A equivalent
Hides the selected text. A signal icon marks the location of the hidden text CTRL+M, No
CTRL+H equivalent
Toggles all text sections previously marked as hidden between the hidden and display CTRL+M, No
states. CTRL+L equivalent
Toggles the currently selected hidden text section between the hidden and display states CTRL+M, No
CTRL+M equivalent
Removes the outlining information for the currently selected region CTRL+M, No
CTRL+U equivalent
or
SHIFT+F9
Toggle breakpoint F9 F9
Delete the breakpoint. Only available in the Breakpoints window ALT+F9, D No equivalent
Open the Edit breakpoint labels dialog. Only available in the Breakpoints ALT+F9, L No equivalent
window
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 13/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
or
CTRL+J
or
ALT+RIGHT ARROW
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 14/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Changes the IntelliSense filter level from the Common tab to the All tab. ALT+PLUS SIGN ﴾+﴿ No equivalent
Changes the IntelliSense filter level from the All tab to the Common tab. ALT+PERIOD ﴾.﴿ No equivalent
Move to the previous pane of a document in split pane view SHIFT+F6 SHIFT+F6
Back, display the previous page in the viewing history ALT+LEFTARRO ALT+LEFTARRO
W W
Forward, display the next page in the viewing history ALT+RIGHTARR ALT+RIGHTARR
OW OW
Closes a menu or dialog box, cancels an operation in progress, or places focus in ESC No equivalent
the current window
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 15/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
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 project CTRL+SHIFT+N CTRL+SHIFT+N
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://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 16/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Start incremental search. Type the characters to search for or press CTRL+I to search for CTRL+I CTRL+I
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+ CTRL+SHIFT+
F3 F3
Reverse incremental search so it starts at the bottom of the file and searches to the top CTRL+SHIFT+ CTRL+SHIFT+
I I
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 toolbar CTRL+/ No
equivalent
SQL Server
Action SQL Server 2012
2008 R2
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 17/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Cut ﴾delete the currently selected item and place it to the Clipboard﴿ CTRL+X CTRL+X
or or
SHIFTRLT+DELETE SHIFT+DELETE
Cuts all of the selected lines, or the current line if nothing is selected. CTRL+L No equivalent
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 point and automatically CTRL+SHIFT+V No equivalent
selects the pasted item
or
CTRL+enseSHIFT+I
NSERT
Refresh No equivalent F5
Move between the Select logs pane and the Log file summary pane No equivalent F6
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 18/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Refresh F5 F5
Refresh F5 F5
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 19/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Define filter F6 F6
Apply filter F7 F7
When in the results pane, moves focus to the tool strip docked at the bottom of CTRL+G CTRL+G
the designer
Move the selected control down in increments of 8 on the design surface DOWN ARROW No equivalent
Move the selected control left in increments of 8 on the design surface LEFT ARROW No equivalent
Move the selected control right in increments of 8 on the design surface RIGHT ARROW No equivalent
Move the selected control up in increments of 8 on the design surface UP ARROW No equivalent
Increases the height of the selected control in increments of 8 SHIFT+DOWN ARROW No equivalent
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 20/21
3/24/2017 SQL Server Management Studio Keyboard Shortcuts
Reduces the width of the selected control in increments of 8 SHIFT+LEFT ARROW No equivalent
Increases the width of the selected control in increments of 8 SHIFT+RIGHT ARROW No equivalent
Decreases the height of the selected control in increments of 8 SHIFT+UP ARROW No equivalent
See Also
Concepts
Customize Menus and Shortcut Keys
Community Additions
colinbashbash
10/7/2015
swp001
4/16/2015
sql preparing
nbfsdklfmdjkbndl,v;cvnbdlc,. nbodd,ccnbsdfopkgvmv .
apyadav
2/10/2014
© 2017 Microsoft
https://technet.microsoft.com/enus/library/ms174205(d=printer,v=sql.110).aspx 21/21