Users Pricing

articles

home / developersection / articles / text manipulation in code editor shortcuts keys for sql server

Text Manipulation in Code Editor Shortcuts keys for SQL Server

Vijay Shukla 4030 03 Apr 2013 Updated 29 Nov 2017
Text Manipulation in Code Editor Keyboard Shortcuts
Action
SQL Server 2012
SQL Server 2008 R2

Insert a new line

ENTER or SHIFT+ENTER

ENTER or SHIFT+ENTER

Swap the characters on either side of the cursor (Does not apply to the SQL Editor.)

CTRL+T

CTRL+T

Delete one character to the right of the cursor

DELETE

DELETE

Delete one character to the left of the cursor

BACKSPACE or SHIFT+BACKSPACE

BACKSPACE or SHIFT+ BACKSPACE

Delete whitespace in the selection, or deletes whitespace adjacent to the cursor if there is no selection

CTRL+K, C

No equivalent

Insert the number of spaces configured for the editor

TAB

TAB

Insert a blank line above the cursor

CTRL+ENTER

CTRL+ENTER

Insert a blank line below the cursor

CTRL+SHIFT+ ENTER

CTRL+SHIFT+ ENTER

Change the selected text to lowercase

CTRL+SHIFT+L

CTRL+SHIFT+L

Change the selected text to uppercase

CTRL+SHIFT+U

CTRL+SHIFT+U

Toggle between insert mode and overtype mode

INSERT

INSERT

Move selected lines to the left on tab stop

SHIFT+TAB

SHIFT+TAB

Delete the word to the right of the cursor

CTRL+DELETE

CTRL+DELETE

Delete the word to the left of the cursor

CTRL+BACKSPACE

CTRL+BACKSPACE

Transpose the words on either side of the cursor (Does not apply to the SQL Editor.)

CTRL+SHIFT+T

CTRL+SHIFT+T

Moves the line containing the cursor below the next line

SHIFT+ALT+T

No equivalent

Correctly indents the selected lines of code based on the surrounding lines of code

CTRL+K, CTRL+F

No equivalent

Set or remove a shortcut in  the current line

CTRL+K, CTRL+H

No equivalent

Remove the comment syntax from the current line

CTRL+K, CTRL+U

No equivalent

Shows or hides spaces and tabs

CTRL+R, CTRL+W

No equivalent

Enables or disables word wrap in an editor

Alt+F, CTRL+W

No equivalent

Collapses all outlining regions to show just the outermost groups in the hierarchy

CTRL+M, CTRL+A

No equivalent

Collapses the currently selected outlining region

CTRL+M, CTRL+S

No equivalent

Expands all outlining regions on the page

CTRL+M, CTRL+X

No equivalent

Expands the currently selected outlining region

CTRL+M, CTRL+E

No equivalent

Collapses existing outlining regions

CTRL+M, CTRL+O

 

Toggles all text sections previously marked as hidden between the hidden and display states.

CTRL+M, CTRL+L

No equivalent

Toggles the currently selected hidden text section between the hidden and display states

CTRL+M, CTRL+M

No equivalent

Removes all outlining information in the document

CTRL+M, CTRL+P

No equivalent

Removes the outlining information for the currently selected region

CTRL+M, CTRL+U

No equivalent


Vijay Shukla

Other