Fix code errors inline.
CTRL +. (period) keys
Return to the previous cursor position/forward to the next cursor position
1) return to the previous cursor position: Use the combination key "Ctrl + -";
2) move forward to the next cursor position: "Ctrl + Shift + -".
Copy/CUT/Delete the entire line of code
1) If you want to copy a whole line of code, you only need to move the cursor to this line, and then use the combination key "Ctrl + C" to complete the copy operation without selecting the entire line.
2) If you want to cut a whole line of code, you just need to move the cursor to this line, and then use the combination key "Ctrl + X" to complete the cut operation, without selecting the entire line.
3) If you want to delete a whole line of code, you only need to move the cursor to this line, and then use the combination key Ctrl + L to complete the cut operation without selecting the entire line.
Undo/undo
1) undo: Use the combination key "Ctrl + z" to undo the operation;
2) undo: Use the combination key "Ctrl + Y" to undo the operation.
Box Selection
The box selection can be completed by using the combination key shift + ALT + direction key (or mouse. Box selection allows you to select both code rows and columns. This is very convenient for batch deletion of some codes.
Insert a row above or below the row where the cursor is located
1) press Ctrl + enter to insert an empty row on the current row;
2) press Ctrl + Shift + enter to insert an empty row under the current row.
Call parameter information prompt
For some functions with a large body, it is troublesome to easily confirm the use of parameters within the function. In this case, you can place the cursor on the parameter name and press Ctrl + shif + space to highlight the used parameter.
Comment/cancel comment
1) Note: The key combination is Ctrl + K + C ";
2) uncomment: press Ctrl + K + U ".
Case-sensitive Conversion
1) lower case: Use the combination key "Ctrl + u ";
2) convert to uppercase: Use the combination key "Ctrl + Shift + U ".
Debugging problems
1) debug (start): F5;
2) debug (restart): press Ctrl + Shift + F5 ";
3) debugging (start execution without debugging): Use the combination key "Ctrl + F5 ";
4) debugging (Statement by statement): F11;
5) debugging (process by process): F10;
6) set the breakpoint: F9.
Common shortcut keys of Visual Studio