Preferences->Settings"; then search for "tabsize"; finally open the file and change the "editor.tabsize" Just change the parameter to 2."/> Preferences->Settings"; then search for "tabsize"; finally open the file and change the "editor.tabsize" Just change the parameter to 2.">

Home >Development Tools >VSCode >Should vscode indent 2 or 4 spaces?

Should vscode indent 2 or 4 spaces?

藏色散人
藏色散人Original
2019-12-17 11:17:564860browse

Should vscode indent 2 or 4 spaces?

Does vscode indent 2 or 4 spaces?

vscode Set the code formatting indentation to 2 spaces

1. First open the file——》Preference——》Settings

2. Then enter search tabsize

3. Set as shown below, then open a file and press Alt Shift f to format it to test the effect

Should vscode indent 2 or 4 spaces?

:

Indent to 4 spaces

Should vscode indent 2 or 4 spaces?

Indent to 2 spaces

Should vscode indent 2 or 4 spaces?

Related Recommended: vscode tutorial

The above is the detailed content of Should vscode indent 2 or 4 spaces?. 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