1. Manage Visual Studio | |
---|---|
⌃+s | Save current file |
⌃+⇧+s | Save all files |
⌃+⇧+n | Create new project |
⌃+o | Open file |
⌃+⇧+o | Open project |
⌃+⇧+a | Add item to project |
Esc | Close menu or dialog |
⌃+p | |
⇧+Alt+Enter | Toggle full screen mode |
⌃+f4 | Close current tab |
⌃+f6/⌃+⇧+f6 | Go to next / go to previous window |
⌃+Tab, then Arrow keys | Press and hold ⌃+Tab, then using arrow keys gives a small task manager with all open files and views |
▲ up
2. Bookmarks | |
---|---|
For keystrokes with two keys such as ⌃+k+k, keep holding the ⌃ key until releasing the last key. | |
⌃+k+k | Toogle bookmark |
⌃+k+n | Goto next bookmark |
⌃+k+p | Goto previous bookmark |
⌃+⇧+k+n | Goto next bookmark in folder |
⌃+⇧+k+p | Goto previous bookmark in folder |
⌃+k+w | Put focus on bookmark window |
Esc | Leave bookmark window and focus on editor |
⌃+k+h | Toggle code shortcut at current line* |
⌃ + K + L | Clear all bookmarks |
*if somebody figures out additional shortut keys on how to use code shortcuts, please edit this page and add. |
▲ up
3. Code Editor |
---|
Find, Replace, and Goto | |
---|---|
⌃+f | Find and replace dialog box |
f3/⇧+f3 | Find next / find previous |
⌃+h | Display Replace options on the quick tab |
⇧+f12 | Find all references for selected symbol |
⌃+⇧+f | Find in files |
Alt+F3, s | Stop current find in files operation |
⌃+F3/⌃+⇧+f3 | Find next / find previous in selected text |
Alt+F12 | Find symbol |
⌃+d | Put cursor in find/command box of the toolbar. Use ⌃+/ in Visual C# |
⌃+i/⌃+⇧+i | Incremental search / reverse incremental search |
⇧+Alt+f12 | Quick find symbol |
⌃+, | Display Navigate-To dialog box |
⌃+g | Goto line number |
⌃+] | Go to matching brace in source file |
Undo, Redo, Copy, Paste | |
---|---|
⌃+x, Ctrl+x, Ctrl+v | Cut, copy, paste |
⌃+⇧+v | Pastes an item from the Clipboard ring |
⌃+z | Undo |
⌃+y | Redo (or ⇧+Alt+Backspace, or ⌃+⇧+Z) |
Select Text | |
---|---|
⇧+Arrow Keys | Extend selection one character/one line |
⌃+⇧+End/ ⌃+⇧+Home | Extend selection to end / to beginning of document |
⌃+⇧+] | Extend selection to nexst brace |
⇧+End/ ⇧+Home | Extend selection to end / to beginning of line |
⇧+Page Down/ ⇧+Page Up | Extends selection down one page / up one page |
⌃+w | Select current word |
Esc | Cancel Selection |
⌃+⇧+Page Down/ Page Up | Moves cursor and extend selection to the last line / first line in view. |
⌃+⇧+Arrow right/ arrow left | Extend selection one word to the right / one word to the left |
⌃+a | Select All |
▲ up
4. Coding |
---|
Collapse Items | |
---|---|
⌃+m+m | Collapse / un-collapse current preset area (e.g. method) |
⌃+m+h | Collpase / hide current selection |
⌃+m+o | Collapse declaration bodies |
⌃+m+a | Collapse all |
⌃+m+x | Uncollapse all |
⌃+m, ⌃+t | Collapse Html tag |
Edit Code | |
---|---|
⌃+l | Delete current line or selection of lines to and add to clipboard |
⌃+⇧+l | Delete current line or selection of lines |
⌃+Delete | Delete word to right of cursor |
⌃+Backspace | Delete word to left of cursor |
⌃+Enter | Enter blank line above cursor |
⌃+⇧+Enter | Enter blank line below cursor |
⌃+⇧+u | Make uppercase |
⌃+u | Make lowercase (reverse upercase) |
⌃+k+c | Comment selected text |
⌃+k+u | Uncomment selected text |
⌃+k+\ | Remove white space and tabs in selection or around current cursor position |
⌃+k+d | Format document to code formatting settings |
⌃+k+f | Format selection to code formatting settings |
⌃+⇧+space | Display parameter required for selected method |
⌃+⇧+8 | Visualize whitespace (or press ⌃+r, then ⌃+w) |
⌃+k+d | Format document to code formatting settings |
⌃+k+f | Format selection to code formatting settings |
⌃+⇧+t | Transpose word to right of cursor; makes b=a out of a=b if cursor was in front of a |
⌃+t | Transpose character left and right of cursor; cursor between ab would make ba |
⇧+Alt+t | Transpose line: Move line below cursor up and current line down. |
IntelliSense and Code Helper | |
---|---|
⌃+Space | Autocomplete word from completion list (or alt+right arrow) |
⌃+⇧+Space | Show parameter info |
⌃+f12 | Display symbol definition |
f12 | Display symbol declaration |
⌃+j | Open IntelliSense completion list |
▲ up
5. Build and Debug | |
---|---|
f7 | Build solution (or ⌃+⇧+b) |
⌃+Alt+f7 | Rebuild solution |
⌃+break | Cancel build process |
⌃+\+e | Show error list |
f9 | Toggle breakpoint |
⌃+b | Insert new function breakpoint |
f5 | Start debugging |
f11 | Debug / step into |
f10 | Debug / step over |
⇧+f11 | Debug / step out |
⌃+f10 | Debug / run to cursor |
⌃+Alt+q | Show Quickwatch window |
⌃+⇧+f10 | Set current statement to be the next executed |
Alt+* (on numeric keyboard) | Show nexst statement |
⌃+Alt+e | Show Exception dialog box |
⌃+f11 | Toggle between disassembly and user code view |
⇧+f5 | Stop Debugging |
⌃+f5 | Bypass debugger |
⌃+Alt+p | Show attach to process window |
⌃+Alt+break | Break all executing threads |
▲ up
6. Tool Windows | |
---|---|
⌃+/ | Put cursor in the find/command box in toolbar |
⌃+k+b | Open code snippet manager window |
Alt+f11 | Open macro IDE window |
⌃+k+w | Open bookmark window |
⌃+Alt+k | Open call hierarchy window |
⌃+⇧+c | Open class view window |
⌃+Alt+a | Open Command window |
⌃+⇧+o | Open Output window |
⌃+⇧+e | Open Resource view window |
⌃+Alt+s | Open Server explorer window |
⌃+⇧+l | Open Solution explorer window |
⇧+Esc | Close Find & Replace Window |
No comments:
Post a Comment