Summary of several shortcut operations of visual studio programming C#-improve efficiency

1. Comment the selected code: ctrl+k then ctrl+c

2. Uncomment the selected code: ctrl+k then ctrl+u

3. Several shortcut keys for code generation:
enter "cw" + Tab + Tab- quickly enter Console.WriteLine();

“cw” + Tab + Tab - Console.WriteLine();

“mbox” + Tab + Tab - Messagebox.Show();

"prop" + Tab + Tab-Property block containing Get and Set receivers

"propg" + Tab + Tab-read-only property fast

"propfull" + Tabl + Tab-Fast property with complete get and set receiver

"for" + Tab + Tab-quickly generate for loop

    for (int i = 0; i<length; i++)
			{
    
    

			}

4. You can also define your own code segment, click the Tools menu-Code Segment Manager,
click Add (A), you can define your own code segment.

Collect it to improve efficiency

Guess you like

Origin blog.csdn.net/NikoHsu/article/details/105367460