Home >Development Tools >VSCode >vscode formatting code is invalid
1. Reason:
vscode enables the option of automatically setting tabsize based on file type by default.
2. Solution:
Therefore, format overwriting can be prevented by turning off the automatic setting option.
3. How to operate
Add the following configuration in the user settings: "editor.detectIndentation": false
file->preferences ->settings Search detect indentation
as shown in the picture:
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of vscode formatting code is invalid. For more information, please follow other related articles on the PHP Chinese website!