Home  >  Article  >  Development Tools  >  How to set tab key size in vscode

How to set tab key size in vscode

王林
王林Original
2020-03-14 15:25:477289browse

How to set tab key size in vscode

Click on the icon in the lower left corner and select settings

How to set tab key size in vscode

(Recommended learning: java video tutorial )

Enter settings.json

How to set tab key size in vscode

The left side of the panel provides a configuration introduction for the system, and the right side is for your own configuration. We need to add two configurations to the user configuration on the right Content

"editor.tabSize": 4: Specify how many spaces a tab is equal to. For example, specifying 4 here is equal to 4 spaces, and 2 is equal to two spaces

"editor. detectIndentation":false: Must be specified! ! Otherwise, the specified tab size will have no effect.

How to set tab key size in vscode

Finally, restart vscode.

Recommended tutorial: vscode tutorial

The above is the detailed content of How to set tab key size in vscode. 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