Поделиться через


Text Manipulation Shortcut Keys, Visual C++ 2.0 Default Shortcut Option

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

Note

The appearance of features in the IDE can depend on your active settings or edition, and might differ from those described in Help. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Command name

Shortcut keys

Description

Edit.BreakLine

ENTER SHIFT + ENTER

Inserts a new line.

Edit.CompleteWord

CTRL + SPACE

Displays Word Completion based on the current language.

Edit.Delete

DELETE

Deletes one character to the right of the cursor.

Edit.DeleteBackwards

BACKSPACE SHIFT + BACKSPACE

Deletes one character to the left of the cursor.

Edit.FormatSelection

CTRL + SHIFT + F CTRL + ALT + I

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

Edit.InsertTab

TAB

Indents the line of text a specified number of spaces, such as five.

Edit.LineCut

CTRL + Y

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

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

CTRL + SHIFT + X

Swaps the anchor and end points of the current selection.

Edit.TabLeft

SHIFT + TAB

Moves selected lines to the left one tab stop.

Edit.ToggleBookmark

CTRL + F2

Sets or removes a bookmark at the current line.

Edit.ViewWhiteSpace

CTRL + ALT + T

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.

See Also

Tasks

How to: Work with Keyboard Shortcuts

Concepts

Pre-defined Keyboard Shortcuts

Other Resources

Visual C++ 2.0 Default Shortcut Keys