115 Useful Keyboard Shortcuts for Visual Studio 2010

6
2/5/14 115 useful Keyboard Shortcuts for Visual Studio 2010. www.shortcutworld.com/print2.php?id=535 1/6 (Click here to go back to Visual Studio Shortcuts on shortcutworld.com) Visual Studio 2010 Shortcuts 1. Manage Visual Studio Ctrl + S S ave current file Ctrl + Shift + S S ave all files Ctrl + Shift + N Create n ew project Ctrl + O O pen file Ctrl + Shift + O O pen project Ctrl + Shift + A A dd item to project Esc Close menu or dialog Ctrl + P P rint Shift + Alt + Enter Toggle full screen mode Ctrl + F4 Close current tab Ctrl + F6 / Ctrl + Shift + F6 Go to next / go to previous window Ctrl + Tab , then Arrow keys Press and hold Ctrl + Tab , then using arrow keys gives a small task manager with all open files and views 2. Bookmarks For keystrokes with two keys such as Ctrl + k+ k , keep holding the Ctrl key until releasing the last key. Ctrl + K+ K Toogle boo k mark Ctrl + K+ N Goto n ext bookmark Ctrl + K+ P Goto p revious bookmark Ctrl + Shift + K+ N Goto n ext bookmark in folder Ctrl + Shift + K+ P Goto p revious bookmark in folder Ctrl + K+ W Put focus on bookmark w indow Esc Leave bookmark window and focus on editor

description

Atalhos visual studio

Transcript of 115 Useful Keyboard Shortcuts for Visual Studio 2010

Page 1: 115 Useful Keyboard Shortcuts for Visual Studio 2010

2/5/14 115 useful Keyboard Shortcuts for Visual Studio 2010.

www.shortcutworld.com/print2.php?id=535 1/6

(Click here to go back to Visual Studio Shortcuts on shortcutworld.com)

Visual Studio 2010 Shortcuts

1. Manage Visual Studio

Ctrl + S S ave current file

Ctrl + Shift + S S ave all files

Ctrl + Shift + N Create n ew project

Ctrl + O O pen file

Ctrl + Shift + O O pen project

Ctrl + Shift + A A dd item to project

Esc Close menu or dialog

Ctrl + P P rint

Shift + Alt + Enter Toggle full screen mode

Ctrl + F4 Close current tab

Ctrl + F6 / Ctrl + Shift + F6 Go to next / go to previous window

Ctrl + Tab , then

Arrow keys

Press and hold Ctrl + Tab , then

using arrow keys gives a small task

manager with all open files and views

2. Bookmarks

For keystrokes with two keys such as Ctrl + k + k , keep holding

the Ctrl key until releasing the last key.

Ctrl + K + K Toogle boo k mark

Ctrl + K + N Goto n ext bookmark

Ctrl + K + P Goto p revious bookmark

Ctrl + Shift + K + N Goto n ext bookmark in folder

Ctrl + Shift + K + P Goto p revious bookmark in folder

Ctrl + K + W Put focus on bookmark w indow

EscLeave bookmark window and focus on

editor

Page 2: 115 Useful Keyboard Shortcuts for Visual Studio 2010

2/5/14 115 useful Keyboard Shortcuts for Visual Studio 2010.

www.shortcutworld.com/print2.php?id=535 2/6

Ctrl + K + H Toggle code s h ortcut at current line*

Ctrl + K + L Clear all bookmarks

Ctrl + \ + T Show Task List (including code shortcuts)

*if somebody figures out additional shortut keys on how to use

code shortcuts, please edit this page and add.

3. Code Editor

Find, Replace, and Goto

Ctrl + F F ind and replace dialog box

F3 / Shift + F3 Find next / find previous

Ctrl + HDisplay Replace options on the

quick tab

Shift + F12Find all references for selected

symbol

Ctrl + Shift + F Find in files

Alt + F3 , s Stop current find in files operation

Ctrl + F3 / Ctrl + Shift + F3Find next / find previous in selected

text

Alt + F12 Find symbol

Ctrl + D

Put cursor in fin d /command box

of the toolbar. Use ctrl + / in

Visual C#

Ctrl + I / Ctrl + Shift + II ncremental search / reverse

incremental search

Shift + Alt + F12 Quick find symbol

Ctrl + , Display Navigate-To dialog box

Ctrl + G G oto line number

Ctrl + ] Go to matching brace in source file

Shift + Ctrl + Arrow downJump to next occurrence of

highlighted symbol

Shift + Ctrl + Arrow upJump to previous occurrence of

highlighted symbol

Undo, Redo, Copy, Paste

Ctrl + x , Ctrl+ c ,

Ctrl+ VCut, copy, paste

Ctrl + Shift + V Pastes an item from the Clipboard ring

Page 3: 115 Useful Keyboard Shortcuts for Visual Studio 2010

2/5/14 115 useful Keyboard Shortcuts for Visual Studio 2010.

www.shortcutworld.com/print2.php?id=535 3/6

Ctrl + Z Undo

Ctrl + YRedo (or Shift + Alt + Backspace , or

Ctrl + Shift + Z )

Select Text

Shift + Arrow KeysExtend selection one

character/one line

Ctrl + Shift + End / Ctrl + Shift + Home

Extend selection to end

/ to beginning of

document

Ctrl + Shift + ]Extend selection to

nexst brace

Shift + End / Shift + HomeExtend selection to end

/ to beginning of line

Shift + Page Down / Shift + Page Up

Extends selection down

one page / up one

page

Ctrl + W Select current w ord

Esc Cancel Selection

Ctrl + Shift + Page Down / Page Up

Moves cursor and

extend selection to the

last line / first line in

view.

Ctrl + Shift + Arrow Right / Arrow Left

Extend selection one

word to the right / one

word to the left

Ctrl + A Select A ll

4. Coding

Collapse Items

Ctrl + M + MCollapse / un-collapse current preset area

(e.g. method)

Ctrl + M + H Collpase / h ide current selection

Ctrl + M + O Collapse declaration bodies

Ctrl + M + A Collapse a ll

Ctrl + M + X Uncollapse all

Ctrl + m , ctrl + T Collapse H t ml tag

Edit Code

Ctrl + LDe l ete current line or selection of lines

to and add to clipboard

Page 4: 115 Useful Keyboard Shortcuts for Visual Studio 2010

2/5/14 115 useful Keyboard Shortcuts for Visual Studio 2010.

www.shortcutworld.com/print2.php?id=535 4/6

Ctrl + Shift + L De l ete current line or selection of lines

Ctrl + Delete Delete word to right of cursor

Ctrl + Backspace Delete word to left of cursor

Ctrl + Enter Enter blank line above cursor

Ctrl + Shift + Enter Enter blank line below cursor

Ctrl + Shift + U Make u ppercase

Ctrl + U Make lowercase (reverse u percase)

Ctrl + K + C C omment selected text

Ctrl + K + U U ncomment selected text

Ctrl + K + \Remove white space and tabs in selection

or around current cursor position

Ctrl + K + DFormat document to code formatting

settings

Ctrl + K + FFormat selection to code formatting

settings

Ctrl + Shift + SpaceDisplay parameter required for selected

method

Ctrl + Shift + 8Visualize w hitespace (or press Ctrl + r ,

then Ctrl + w )

Ctrl + K + DFormat document to code formatting

settings

Ctrl + K + FFormat selection to code formatting

settings

Ctrl + Shift + T

T ranspose word to right of cursor;

makes b=a out of a=b if cursor was in

front of a

Ctrl + TT ranspose character left and right of

cursor; cursor between ab would make ba

Shift + Alt + TT ranspose line: Move line below cursor

up and current line down.

IntelliSense and Code Helper

Ctrl + SpaceAutocomplete word from completion list

(or alt + right arrow )

Ctrl + Shift + Space Show parameter info

Ctrl + F12 Display symbol definition

F12 Display symbol declaration

Ctrl + J Open IntelliSense completion list

Page 5: 115 Useful Keyboard Shortcuts for Visual Studio 2010

2/5/14 115 useful Keyboard Shortcuts for Visual Studio 2010.

www.shortcutworld.com/print2.php?id=535 5/6

5. Build and Debug

F6 Build solution (or Ctrl + shift + b )

Ctrl + Alt + F7 Rebuild solution

Ctrl + Break Cancel build process

Ctrl + \ + E Show e rror list

F9 Toggle breakpoint

Ctrl + B Insert new function b reakpoint

F5 Start debugging

F11 Debug / step into

F10 Debug / step over

Shift + F11 Debug / step out

Ctrl + F10 Debug / run to cursor

Ctrl + Alt + Q Show Q uickwatch window

Ctrl + Shift + F10Set current statement to be the next

executed

Alt + * (on numeric

keyboard)Show nexst statement

Ctrl + Alt + E Show E xception dialog box

Ctrl + F11Toggle between disassembly and user

code view

Shift + F5 Stop Debugging

Ctrl + F5 Bypass debugger

Ctrl + Alt + P Show attach to p rocess window

Ctrl + Alt +break Break all executing threads

6. Tool Windows

Ctrl + /Put cursor in the find/command box in

toolbar

Ctrl + K + B Open code snippet manager window

Alt + F11 Open macro IDE window

Ctrl + K + W Open bookmark window

Ctrl + Alt + K Open call hierarchy window

Page 6: 115 Useful Keyboard Shortcuts for Visual Studio 2010

2/5/14 115 useful Keyboard Shortcuts for Visual Studio 2010.

www.shortcutworld.com/print2.php?id=535 6/6

Ctrl + Shift + C Open c lass view window

Ctrl + Alt + A Open Command window

Ctrl + Shift + O Open O utput window

Ctrl + Shift + E Open R e source view window

Ctrl + Alt + S Open S erver explorer window

Ctrl + Shift + L Open So l ution explorer window

Shift + Esc Close Find & Replace Window