Search this blog

Wednesday, June 3, 2009

Visual Studio : Text manipulation Keys

Enter: Inserts a new line

Delete : Deletes one character to the right of the cursor

Insert : Toggles between insert and overtype insertion modes

Tab : Indents the currently selected line or lines by one tab stop. If there is no selection, this inserts a tab stop

Shift-Tab : Moves current line or selected lines one tab stop to the left

Backspace or Shift-Backspace : Deletes one character to the left of the cursor

Ctrl-K, Ctrl-C : Marks the current line or selected lines of code as a comment, using the correct comment syntax for the programming language

Ctrl-K, Ctrl-U : Removes the comment syntax from the current line or currently selected lines of code

Ctrl-T or Shift-Enter : Swaps the characters on either side of the cursor. (For example, AC|BD becomes AB|CD.) Available only in text editors

Ctrl-K, Ctrl-L : Removes all unnamed bookmarks in the current document

Ctrl-M, Ctrl-O : Automatically determines logical boundaries for creating regions in code, such as procedures, and then hides them. This collapses all such regions in the current document

Alt-Right Arrow or Ctrl-Spacebar : Displays statement completion based on the current language or autocompletes word if existing text unambiguously identifies a single symbol

Ctrl-K, Ctrl-\ : Removes horizontal whitespace in the selection or deletes whitespace adjacent to the cursor if there is no selection

Ctrl-K, Ctrl-F : 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 to the selected text.

Ctrl-L : Cuts all selected lines or the current line if nothing has been selected to the clipboard

Ctrl-Shift-L : Deletes all selected lines or the current line if no selection has been made

Ctrl-Enter : Inserts a blank line above the cursor

Ctrl-Shift-Enter : Inserts a blank line below the cursor

Shift-Alt-T : Moves the line containing the cursor below the next line

Ctrl-J : Lists members for statement completion when editing code

Ctrl-U : Changes the selected text to lowercase characters

Ctrl-Shift-U : Changes the selected text to uppercase characters

Ctrl-Shift-Spacebar : Displays a tooltip that contains information for the current parameter, based on the current language

Ctrl-M, Ctrl-U : Removes the outlining information for the currently selected region

Ctrl-M, Ctrl-P : Removes all outlining information from the entire document

Ctrl-R, Ctrl-P : Swaps the anchor and endpoint of the current selection

Ctrl-M, Ctrl-L : Toggles all previously marked hidden text sections between hidden and display states

Ctrl-K, Ctrl-K : Sets or removes a bookmark at the current line

Ctrl-M, Ctrl-M : Toggles the currently selected hidden text section or the section containing the cursor if there is no selection between the hidden and display states

Ctrl-K, Ctrl-H : Sets or removes a shortcut in the tasklist to the current line

Ctrl-R, Ctrl-R : Enables or disables word wrap in an editor

Ctrl-R, Ctrl-W : Shows or hides spaces and tab marks

Ctrl-Delete : Deletes the word to the right of the cursor

Ctrl-Backspace :
Deletes the word to the left of the cursor

Ctrl-Shift-T : Transposes the two words that follow the cursor. (For example, |End Sub would be changed to read Sub End|.)

No comments:

Post a Comment