Closed trivikr closed 6 years ago
"[javascript]": {
"editor.tabSize": 2
}
Thanks @usernamehw, can the following code be added as default settings in VSCode?
"[javascript]": {
"editor.tabSize": 2
}
I'm not the one to decide this.
editor.tabSize
I noticed that VSCode adds default
editor.tabSize
as 4 Is there a reason for doing this?I went through some popular JavaScript projects, and noticed that all of them use 2 spaces for indentation:
When it comes to TypeScript projects, they also use 2 spaces for indentation:
Only Microsoft projects seem to use 4 spaces for indentation (may be because of C# influence?):
I noticed that popular JavaScript formatters/standards use 2 spaces for indentation:
Is the value of
editor.tabSize
4 because VSCode is used for other languages (like Python) where 4-spaces is a standard? If yes, can language specific indentation setting can be created (sayjavascript.tabSize
)?