visual_studio_keyboard_shortcuts
This is an old revision of the document!
Table of Contents
Visual Studio Keyboard Shortcuts
Favorites
| Step Into | F11 |
| Step Over | F10 |
| Step Out | Shift + F11 |
| Go To Definition | F12 |
| Go To Previous | Ctrl + - |
| Go To Matching Brace | Ctrl + ] |
| Multi Paste | Ctrl + Shift + V |
| Toggle Expand/Collapse to definition | Ctrl + M, Ctrl + O |
Need To Learn
| Incremental Search | Ctrl + I |
| Find Using Previous Term | F3 |
| Find Using Current Selection | Ctrl + F3 |
| Find In Solution | Ctrl + Shift + F |
| Navigate to an Open File | Ctrl + Alt + ↓ |
| Navigate To (almost anything) | Ctrl + comma |
| Record Temp Macro | Ctrl + Shift + R |
| Play Temp Macro | Ctrl + Shift + P |
| Toggle Display Whitespace | Ctrl + R, Ctrl + W |
| Move Right through tab groups in Tool Window | Ctrl + PgDn |
| Move Left through tab groups in Tool Window | Ctrl + PgUp |
| Comment Code | Ctrl + E, C |
| Uncomment Code | Ctrl + E, U |
| Insert Line Above | Ctrl + Enter |
| Insert Line Below | Ctrl + Shift + Enter |
| Transpose a character | Ctrl + T |
| Transpose a word | Ctrl + Shift + T |
| Transpose a line | Alt + Shift + T |
| Remove leading white space | Ctrl + K, Ctrl + \ |
| Make Lowercase | Ctrl + U |
| Make Uppercase | Ctrl + Shift + U |
| Toggle bookmark | Ctrl + B, T |
| Previous bookmark | Ctrl + B, P |
| Next bookmark | Ctrl + B, N |
| Clear all Bookmarks | Ctrl + B, C |
| Select Current Word | Ctrl + Shift + W |
| Toggle Expand/Collapse region section | Ctrl + M, Ctrl + M |
| Delete line | Ctrl + Shift + L |
| Delete word (to the right) | Ctrl + Delete |
| Delete word (to the left) | Ctrl + Backspace |
| Switch to Solution Explorer | Ctrl + W, S |
| Switch to Toolbox | Ctrl + W, X |
| Switch to Editor | Ctrl + Tab |
| Move cursor to top of page | Ctrl + PgUp |
| Move cursor to bottom of page | Ctrl + PgDn |
| Go to a line number | Ctrl + G |
Warm Up Exercises
using System; namespace VisualStudioWarmUpExercises { class Foo { // Comment this line. int i = 42; // Uncomment this line. //int i = 42; // Comment these lines. public void Bar(string text) { for (int i = 0; i < 10; i++) Console.WriteLine("Hello {0}", i); } // Uncomment these lines. //public void Bar(string text) //{ // for (int i = 0; i < 10; i++) // Console.WriteLine("Hello {0}", i); //} // Fix this. stirng comment; // Fix this. private static readonly start DateTime = DateTime.Now; // Fix this. int Second = 2; int First = 1; // Fix this. private static readonly DateTime start; = DateTime.Now // Fix this. start private static readonly DateTime = DateTime.Now; // Fix this. int Fifth = 5; int First = 1; int Second = 2; int Third = 3; int Forth = 4; // Fix this (from the start of the line). private static readonly opps DateTime start = DateTime.Now; // Fix this (from the end of the line). private static readonly opps DateTime start = DateTime.Now; // Fix this (from the start of the line). private static readonly opps this bit should not be here DateTime start = DateTime.Now; // Fix this (from the end of the line). private static readonly opps this bit should not be here DateTime start = DateTime.Now; // This comment is short. // This should be a one line comment. // Delete this line. int mistake = -1; // Delete these lines. int mistake1 = -1; int mistake2 = -1; int mistake3 = -1; int mistake4 = -1; // Switch to Solution Explorer, Toolbox. // Move right through tab groups and then left. // Cycle for and back here. // Go directly to line xx. // Go to the top of the page without scrolling. // Go to the bottom of the page without scrolling. // Turn View White Space on then off. // Bookmark these lines. int bookmark1 = -1; int bookmark2 = -1; int bookmark3 = -1; // Unbookmark bookmark1 and then bookmark3. // Clear all bookmarks. // Collapse and expand this region. #region Region Test // Comment this line. //int i = 42; // Uncomment this line. int i = 42; // Comment these lines. //public void Bar(string text) //{ // for (int i = 0; i < 10; i++) // Console.WriteLine("Hello {0}", i); //} #endregion Region Test } }
visual_studio_keyboard_shortcuts.1308981244.txt.gz · Last modified: 2017/01/01 19:55 (external edit)
