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 [2011/05/01 00:59] – [Need To Learn] stephenvisual_studio_keyboard_shortcuts [2017/01/01 20:05] (current) – external edit 127.0.0.1
Line 41: Line 41:
 | Select Current Word | Ctrl + Shift + W | | Select Current Word | Ctrl + Shift + W |
 | Toggle Expand/Collapse region section | Ctrl + M, Ctrl + M | | Toggle Expand/Collapse region section | Ctrl + M, Ctrl + M |
 +| Cut line to clip board | Ctrl + L |
 | Delete line | Ctrl + Shift + 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 ===== ===== Warm Up Exercises =====
  
 <code c#> <code c#>
-// Comment this line. +using System;
-int i = 42;+
  
-// Uncomment this line. +namespace VisualStudioWarmUpExercises 
-//int i = 42;+
 + class Foo 
 +
 + // Comment this line. 
 + int i = 42;
  
-// Comment these lines+ // Uncomment this line
-using System; + //int i = 42;
-public class HelloWorld { +
-    public static void Main(string[] args) { +
- Console.Write("Hello World!"); +
-    } +
-}+
  
-// Uncomment these lines. + // Comment these lines. 
-//using System; + public void Bar(string text) 
-//public class HelloWorld { +
-//    public static void Main(string[] args) { + for (int i = 0; i < 10; i++) 
-//    Console.Write("Hello World!"); + Console.WriteLine("Hello {0}", i); 
-//    } + }
-//}+
  
-// Fix this+ // Uncomment these lines
-stirng comment;+ //public void Bar(string text) 
 + //{ 
 + //    for (int i = 0i < 10; i++) 
 + //        Console.WriteLine("Hello {0}", i); 
 + //}
  
-// Fix this. 
-private static readonly start DateTime = new DateTime.Now; 
  
-// Fix this+ // This comment is short
-int Second = 2; + // This should be a one line comment.
-int First = 1;+
  
-// Fix this. + // Switch to Solution Explorer, Toolbox.
-private static readonly DateTime start; = new DateTime.Now+
  
-// Fix this. + // Move right through tab groups and then left.
-start private static readonly DateTime = new DateTime.Now;+
  
-// Fix this. + // Switch back to the code editor.
-int Fifth = 5; +
-int First = 1; +
-int Second = 2; +
-int Third = 3; +
-int Forth = 4;+
  
 + // 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> </code>
  
 {{tag>reference visual_studio keyboard_shortcuts}} {{tag>reference visual_studio keyboard_shortcuts}}
visual_studio_keyboard_shortcuts.1304211568.txt.gz · Last modified: 2017/01/01 19:55 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki