Share via


Text Manipulation Shortcut Keys, General Development Settings

The following shortcut key combinations can be used in text editors to delete, move, or format text within an open document.

Command Name

Shortcut Keys

Description

Edit.BreakLine

ENTER

—or—

SHIFT + ENTER

Inserts a new line.

Note

In some editors, like Design view of the HTML Designer, ENTER behaves differently depending on the context. For more information, see the documentation for the editor you are using.

Edit.CharTranspose

CTRL + T

Swaps the characters on either side of the insertion point. For example, AC|BD becomes AB|CD. Available only in text editors.

Edit.ClearBookmarks

CTRL + K, CTRL + L

Removes all unnamed bookmarks in the current document.

Edit.CollapseTag

CTRL + M, CTRL + T

Hides the selected HTML tag and displays an ellipsis (. . .) in its place. You can view the entire tag as a tooltip by placing the mouse pointer over the . . ..

Edit.CollapseToDefinitions

CTRL + M, CTRL + O

Automatically determines logical boundaries for creating regions in code, such as procedures, and then hides them.

Edit.CommentSelection

CTRL + K, CTRL + C

Marks the current line of code as a comment, by using the correct comment syntax for the programming language.

Edit.CompleteWord

ALT + RIGHT ARROW

—or—

CTRL + SPACEBAR

Displays Word Completion based on the current language.

Edit.CopyParameterTip

CTRL + SHIFT + ALT + C

Copies the parameter information displayed by IntelliSense to the Clipboard.

Edit.DeleteBackwards

BACKSPACE

—or—

SHIFT + BACKSPACE

Deletes one character to the left of the cursor.

Edit.DeleteHorizontalWhitespace

CTRL + K, CTRL + \

Collapses white space in the selection, or deletes white space adjacent to the cursor if there is no selection.

Edit.FormatDocument

CTRL + K, CTRL + D

Applies the indenting and space formatting for the language as specified on the Formatting pane of the language in the Text Editor section of the Options dialog box.

Edit.FormatSelection

CTRL + K, CTRL + F

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

Edit.GenerateMethodSub

CTRL + K, CTRL + M

Creates a new method declaration for the method call that the cursor is resting in. Available only when working in C# code.

For more information, see Generate Method Stub.

Edit.HideSelection

CTRL + M, CTRL + H

Hides the selected text. A signal icon marks the location of the hidden text in the file.

Edit.InsertTab

TAB

Indents the line of text a specified number of spaces.

Edit.LineCut

CTRL + L

Cuts all selected lines, or the current line if nothing has been selected, to the Clipboard.

Edit.LineDelete

CTRL + SHIFT + L

Deletes all selected lines, or the current line if no selection has been made.

Edit.LineOpenAbove

CTRL + ENTER

Inserts a blank line above the insertion point.

Edit.LineOpenBelow

CTRL + SHIFT + ENTER

Inserts a blank line below the insertion point.

Edit.LineTranspose

SHIFT + ALT + T

Moves the line containing the insertion point below the next line.

Edit.ListMembers

CTRL + J

Lists members of the current class for statement completion when editing code.

Edit.MakeLowercase

CTRL + U

Changes the selected text to lowercase characters.

Edit.MakeUppercase

CTRL + SHIFT + U

Changes the selected text to uppercase characters.

Edit.OverTypeMode

INSERT

Toggles between insert and overtype insertion modes. Available only when working in text editors.

Edit.ParameterInfo

CTRL + SHIFT + SPACEBAR

Displays a tooltip that contains information for the current parameter, based on the current language. Available only in Source view of the HTML Designer.

Edit.PasteParameterTip

CTRL + SHIFT + ALT + P

Pastes the previously copied parameter information from IntelliSense to the location indicated by the cursor.

Edit.StopHidingCurrent

CTRL + M, CTRL + U

Removes the outlining information for the currently selected region.

Edit.StopOutlining

CTRL + M, CTRL + P

Removes all outlining information from the entire document.

Edit.SwapAnchor

CTRL + K, CTRL + A

Swaps the anchor and end points of the current selection.

Edit.TabLeft

SHIFT + TAB

Moves selected lines to the left one tab stop.

Edit.ToggleAllOutlining

CTRL + M, CTRL + L

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

Edit.ToggleBookmark

CTRL + K, CTRL + K

Sets or removes a bookmark at the current line.

Edit.ToggleOutliningExpansion

CTRL + M, CTRL + M

Toggles the currently selected hidden text section between the hidden and display state.

Edit.ToggleTaskListShortcut

CTRL + K, CTRL + H

Sets or removes a shortcut at the current line.

Edit.ToggleWordWrap

CTRL +E, CTRL + W

Enables or disables wordwrap in an editor.

Edit.UncommentSelection

CTRL + K, CTRL + U

Removes the comment syntax from the current line of code.

Edit.ViewWhiteSpace

CTRL + R, CTRL + W

Shows or hides spaces and tab marks.

Edit.WordDeleteToEnd

CTRL + DELETE

Deletes the word to the right of the insertion point.

Edit.WordDeleteToStart

CTRL + BACKSPACE

Deletes the word to the left of the insertion point.

Edit.WordTranspose

CTRL + SHIFT + T

Transposes the words on either side of the insertion point. For example, |End Sub would be changed to read Sub End|.

See Also

Reference

General Development Settings Default Shortcut Keys