Home  >  Article  >  Development Tools  >  vscode formatting code is invalid

vscode formatting code is invalid

王林
王林Original
2019-12-16 14:29:539660browse

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:

vscode formatting code is invalid

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn