In the case where the text is not selected:
Ctrl+x clipping and deleting the current row can be used to quickly delete the entire line of code
CTRL + C Copy the code of the current line
Ctrl+l Delete When moving forward
Key combinations, you need to press two times:
Ctrl+k,ctrl+c comment All the currently selected code
Ctrl+k,ctrl+u Uncomment all the currently selected code
Ctrl+m,ctrl+m expanding or collapsing code blocks
Ctrl+k,ctrl+d Formatting documents
Other:
F12 go To Definition
CTRL + (number key-) Navigate backwards to position the last cursor
ctrl+shift+ (-) forward navigation
Shift+home Check the code before the current line cursor
Shift+end Check the code after the current line cursor
Shift+alt+enter full-screen coding area, write code safely
Shift+alt+ arrow key to select Code by Rectangle box
ALT + Mouse Box selection effect ditto
Some useful shortcuts and tips for VS (keep updating)