User Tools

Site Tools


visual_studio_keyboard_shortcuts

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
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

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.
	}
}
visual_studio_keyboard_shortcuts.txt · Last modified: 2017/01/01 20:05 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki