First open the user settings and uncheck the editor:detect indentation option, as follows:
Then set the editor:tab size option It is 4, as follows:
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of vscode sets code indentation. For more information, please follow other related articles on the PHP Chinese website!