Friday, August 2, 2013

Keyboard Shortcut Keys for Visual Studio

Ctrl-Space bar - To see intelligence dialog

Ctrl-Shift-S - Saves all files and projects

Ctrl-P - Displays the Print dialog

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

Alt-Shift-A - Add Existing Item(file) to selected project

Ctrl-Shift-A - Add New Item(file) to selected project

Shift-F9 - Display the selected item quick output means contains value while debugging

F12 - Moves the cursor to the selected method, variable, class definition.

Shift-F12 - Finds the reference to the selected method, variable, class or the item under the cursor

Ctrl-End --> Moves the cursor to the end of the document

Ctrl-Home --> Moves the cursor to the start of the document

Ctrl-G --> Displays the Go to Line dialog. If the debugger is running, the dialog also lets you specify addresses or function names to go to

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

Ctrl-Up Arrow --> Scrolls text up one line but does not move the cursor

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

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

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

Ctrl-G --> Go to Particular line

Ctrl-K, Ctrl-C --> To comment the selected lines/current line

Ctrl-K, Ctrl-U --> To Un comment the selected lines/current line

Ctrl-T --> Swaps the characters on either side of the cursor. (For example, AC|BD becomes AB|CD.)

Ctrl-M, Ctrl-O --> Automatically determines logical boundaries for creating regions in code, such as procedures, and then hides them.

Ctrl-M, Ctrl-L --> Collapses all regions in the current document

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

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

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

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

Ctrl-M-O --> Collapse all the methods, classes, regions in the current code behind or class file

Ctrl-M-P or Ctrl-M-L --> Expands all the methods, classes, regions in the current code behind or class file

Ctrl-F --> Displays the Find dialog

Ctrl-H --> Displays the Replace dialog

Ctrl-Shift-F --> Find the reference of selected item into entire solution.

Ctrl-Tab --> Move from one opened file to another opened file in visual studio.

F9 --> Sets or removes a breakpoint at the current line

F5 --> Runs the code with invoking the debugger.

Ctrl-F5 --> Runs the code without invoking the debugger.

F4 or Alt-Enter --> Displays the Properties window, which lists the design-time properties and events for the currently selected item

Ctrl-Alt-L --> Displays the Solution Explorer

Ctrl-Alt-X --> Displays the Toolbox

Ctrl-Alt-I --> Displays the Immediate window, where you can find the controls or variables values or can do data manipulation during debugging


No comments:

Post a Comment