Saturday, August 3, 2013

Useful Visual Studio Shortcuts

General

Ctrl-X or Shift-Delete
Cuts the currently selected item to the clipboard

Ctrl-C or Ctrl-Insert
Copies the currently selected item to the clipboard

Ctrl-V or Shift-Insert
Pastes the item in the clipboard at the cursor

Ctrl-Z or Alt-Backspace
Undo previous editing action

Ctrl-Y or Ctrl-Shift-Z
Redo the previous undo action

Esc
Closes a menu or dialog, cancels an operation in progress, or places focus in the current document window

Ctrl-S
Saves the selected files in the current project (usually the file that is being edited)

Ctrl-Shift-S
Saves all documents and projects

F7
Switches from the design view to the code view in the editor

Shift-F7
Switches from the code view to the design view in the editor


Text navigation

Ctrl-G
Displays the Go to Line dialog.

Ctrl-]
Moves the cursor to the matching brace in the document.

Ctrl-Down Arrow
Scrolls text down one line but does not move the cursor. This is useful for scrolling more text into view without losing your place. Available only in text editors

Ctrl-Up Arrow
Scrolls text up one line but does not move the cursor. Available only in text editors

Ctrl-Right Arrow
Moves the cursor one word to the right

Ctrl-Left Arrow
Moves the cursor one word to the left

Text manipulation

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


Project related

Ctrl-Shift-B
Builds the solution

Ctrl-N
Displays the New File dialog.

Ctrl-Shift-N
Displays the New Project dialog

Ctrl-O
Displays the Open File dialog

Ctrl-Shift-O
Displays the Open Project dialog

Shift-Alt-A
Displays the Add Existing Item dialog

Ctrl-Shift-A
Displays the Add New Item dialog


Search and replace

Ctrl-F
Displays the Find dialog

Ctrl-Shift-F
Displays the Find in Files dialog

Ctrl-I
Starts an incremental search

Ctrl-H
Displays the Replace dialog

Ctrl-Shift-H
Displays the Replace in Files dialog

Debugging

Ctrl-F10
Starts or resumes execution of your code and then halts execution when it reaches the selected statement.

Ctrl-Shift-F10
Sets the execution point to the line of code you choose


Ctrl-Shift-F5
Terminates the current debugging session, rebuilds if necessary, and then starts a new debugging session. Available in break and run modes

F11
Executes code one statement at a time, tracing execution into function calls

Shift-F11
Executes the remaining lines of a function in which the current execution point lies

F10
Executes the next line of code but does not step into any function calls

Shift-F5
Available in break and run modes, this terminates the debugging session

F9
Sets or removes a breakpoint at the current line

Tool window

F4
Displays the Properties window

Ctrl-Shift-E
Displays the Resource View window

Ctrl-Alt-S
Displays the Server Explorer window

Ctrl-Alt-L
Displays the Solution Explorer

Ctrl-Alt-K
Displays the TaskList window, which displays tasks, comments, shortcuts, warnings, and error messages

Link : http://www.codeproject.com/Tips/102936/Visual-Studio-Shortcuts

No comments:

Post a Comment