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

vscode formatting code is invalid

王林
Release: 2019-12-16 14:29:53
Original
9700 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template