visual_studio_keyboard_shortcuts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| visual_studio_keyboard_shortcuts [2011/05/01 01:00] – [Warm Up Exercises] stephen | visual_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/ | | Toggle Expand/ | ||
| + | | 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 | + | namespace VisualStudioWarmUpExercises |
| - | //int i = 42; | + | { |
| + | class Foo | ||
| + | { | ||
| + | // Comment | ||
| + | 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(" | + | |
| - | } | + | |
| - | } | + | |
| - | // Uncomment | + | // Comment |
| - | //using System; | + | public void Bar(string |
| - | //public class HelloWorld { | + | { |
| - | // | + | for (int i = 0; i < 10; i++) |
| - | // | + | Console.WriteLine(" |
| - | // } | + | } |
| - | //} | + | |
| - | // Fix this. | + | // Uncomment these lines. |
| - | stirng comment; | + | //public void Bar(string text) |
| + | //{ | ||
| + | // for (int i = 0; i < 10; i++) | ||
| + | // Console.WriteLine(" | ||
| + | //} | ||
| - | // 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; | + | |
| - | // Delete this line. | + | // Go directly to line 29 and then to 49. |
| - | int mistake = -1; | + | |
| - | // Delete these lines. | + | // Go to the top of the page without scrolling. |
| - | int mistake1 = -1; | + | |
| - | int mistake2 = -1; | + | |
| - | int mistake3 = -1; | + | |
| - | int mistake4 = -1; | + | |
| + | // Go to the bottom of the page without scrolling. | ||
| + | |||
| + | // Turn View White Space on then off. | ||
| + | |||
| + | // Perform an incremental search for ' | ||
| + | |||
| + | // Select the word ' | ||
| + | |||
| + | // 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(" | ||
| + | //} | ||
| + | |||
| + | # | ||
| + | |||
| + | // Go to the brace that matches the one below. | ||
| + | } | ||
| + | } | ||
| </ | </ | ||
| {{tag> | {{tag> | ||
visual_studio_keyboard_shortcuts.1304211633.txt.gz · Last modified: 2017/01/01 19:55 (external edit)
