Udostępnij za pośrednictwem


Text Manipulation Shortcut Keys, Brief Scheme

Use the following shortcut key combinations in text editors to delete, move, or format text within an open document.

Command

Shortcut keys

Description

Edit.BreakLine

ENTER

Inserts a new line.

Note

In some editors, like the 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.ClearBookmarks

CTRL + SHIFT + F2

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 + L, CTRL + C

Marks the current line of code as a comment, 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.DeleteBackwords

BACKSPACE

—or—

SHIFT + BACKSPACE

Deletes one character to the left of the cursor.

Edit.FormatSelection

ALT + F8

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

Edit.GenerateMethodStub

CTRL + K, CTRL + M

—or—

CTRL + L, G

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

SHIFT + ALT + 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 nothing has been selected.

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

—or—

CTRL + ALT + T

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

Edit.MakeLowercase

ALT + ;

Changes the selected text to lowercase characters.

Edit.MakeUppercase

CTRL + SHIFT + U

—or—

SHIFT + ALT + ;

Changes the selected text to uppercase characters.

Edit.OverTypeMode

ALT + I

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

Edit.ParameterInfo

CTRL + SHIFT + SPACEBAR

Displays a tool tip 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 insertion point.

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.TabifySelectedLines

CTRL + L, CTRL + T

Replaces spaces with tabs in the selected text.

Edit.TabLeft

SHIFT + TAB

Moves selected lines to the left one tab stop.

Edit.ToggleWordWrap

CTRL + L, CTRL + R

Replaces tabs with spaces in selected text.

Edit.ToggleAllOutlining

CTRL + M, CTRL + L

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

Edit.ToggleBookmark

CTRL + L, CTRL + K

—or—

CTRL + F2

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 + L, CTRL + H

—or—

CTRL + J, CTRL + H

Sets or removes a shortcut at the current line.

Edit.UncommentSelection

CTRL + L, CTRL + U

—or—

CTRL + J, CTRL + U

Removes the comment syntax from the current line of code.

Edit.ViewWhiteSpace

CTRL + SHIFT + 8

Shows or hides spaces and tab marks.

Edit.UntabifySelectedLines

CTRL + L, CTRL + SHIFT + T

Replaces tabs with spaces in selected text.

Edit.WordDeleteToEnd

CTRL + DELETE

Deletes the word to the right 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

Brief Default Shortcut Keys