Export (0) Print
Expand All

Text Manipulation Shortcut Keys, Visual Basic 6.0 Default Shortcut Option 

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

Command Shortcut Keys Description

Edit.BreakLine

ENTER SHIFT + ENTER

Inserts a new line.

Edit.CollapsetoDefinition

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, using the correct comment syntax for the programming language.

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 that 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.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, such as five. Available only in the .NET Framework Designer.

Edit.LineCut

CTRL + Y

Cuts all selected lines, or the current line if there is no selection, to the Clipboard.

Edit.LineDelete

CTRL + SHIFT + Y

Deletes all selected lines, or the current line if there is no selection.

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

INSERT

Types over any characters already in the document instead of inserting the characters. Available only in Text editors.

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 + R, CTRL + P

Swaps the anchor and end points of the current selection.

Edit.TabLeft

SHIFT + TAB

Moves selected lines left one tab stop. Available only in the .NET Framework Designer.

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

CTRL + SHIFT + T

Transposes the words on either side of the insertion point.

View.ShowReferences

ALT + F12

Performs a case-sensitive, whole word symbol search and displays the results in the Find Symbol Results window.

Community Additions

ADD
Show:
© 2014 Microsoft