User Tools

Site Tools


visual_studio_keyboard_shortcuts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual_studio_keyboard_shortcuts [2010/09/06 08:38] stephenvisual_studio_keyboard_shortcuts [2017/01/01 20:05] (current) – external edit 127.0.0.1
Line 10: Line 10:
 | Go To Matching Brace | Ctrl + ] | | Go To Matching Brace | Ctrl + ] |
 | Multi Paste | Ctrl + Shift + V | | Multi Paste | Ctrl + Shift + V |
 +| Toggle Expand/Collapse to definition | Ctrl + M, Ctrl + O |
  
 ===== Need To Learn ===== ===== Need To Learn =====
Line 24: Line 25:
 | Move Right through tab groups in Tool Window  | Ctrl + PgDn | | Move Right through tab groups in Tool Window  | Ctrl + PgDn |
 | Move Left through tab groups in Tool Window  | Ctrl + PgUp | | Move Left through tab groups in Tool Window  | Ctrl + PgUp |
-| Comment Code | Ctrl + K, C | +| Comment Code | Ctrl + E, C | 
-| Uncomment Code | Ctrl + K, U |+| 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 | 
 +| Cut line to clip board | Ctrl + L | 
 +| 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 | 
 +| Swap selection anchor points | Ctrl + K, Ctrl + A | 
 +| Invoke statement completion | Ctrl + J | 
 +| Auto search forward | Ctrl + F3 | 
 +| Auto search backward | Ctrl + Shift + F3 | 
 + 
 + 
 +===== Warm Up Exercises ===== 
 + 
 +<code c#> 
 +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); 
 + //} 
 + 
 + 
 + // This comment is short. 
 + // This should be a one line comment. 
 + 
 + // Switch to Solution Explorer, Toolbox. 
 + 
 + // Move right through tab groups and then left. 
 + 
 + // Switch back to the code editor. 
 + 
 + // Go directly to line 29 and then to 49. 
 + 
 + // 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. 
 + 
 + // Perform an incremental search for 'uncomment'
 + 
 + // Select the word 'cursor' and perform an auto search forward and back. 
 + 
 + // With the cursor on this line, insert a line above. 
 + 
 + // With the cursor on this line, insert a line below. 
 + 
 + // Correct this to ToString(). 
 + String s = 67.ToText(); 
 + 
 + // Bookmark these lines. 
 + int bookmark1 = -1; 
 + 
 + int bookmark2 = -1; 
 + 
 + int bookmark3 = -1; 
 + 
 + // Unbookmark bookmark1 and then bookmark3. 
 + 
 + // Clear all bookmarks. 
 + 
 + // Collapse and expand this particular region, 
 + // And then collapse and expand all regions. 
 + #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 
 + 
 + // Go to the brace that matches the one below. 
 +
 +
 +</code>
  
 {{tag>reference visual_studio keyboard_shortcuts}} {{tag>reference visual_studio keyboard_shortcuts}}
visual_studio_keyboard_shortcuts.1283762321.txt.gz · Last modified: 2017/01/01 19:55 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki