Does vscode indent 2 or 4 spaces?
vscode Set the code formatting indentation to 2 spaces
1. First open the file——》Preference——》Settings
2. Then enter search tabsize
3. Set as shown below, then open a file and press Alt Shift f to format it to test the effect
:
Indent to 4 spaces
Indent to 2 spaces
Related Recommended: vscode tutorial
The above is the detailed content of Should vscode indent 2 or 4 spaces?. For more information, please follow other related articles on the PHP Chinese website!