Vscode multi-line indent shortcut key:
The so-called batch indentation is to select a piece of text code and move it to the left or right in batches.
First select the code, then press and hold the following key combination
- Indent left:
Ctrl + [ 或者 Shift+Tab
- Indent right:
Ctrl + ] 或者 Tab
Visual Studio Code formatting code
Function: It is mainly to organize the indentation of the original code and the interval of operators.
Purpose: Make code indentation clear and easier to read.
The shortcut keys are as follows:
- On Windows
Shift + Alt + F
- On Mac
Shift + Option + F
- On Ubuntu
Ctrl + Shift + I