You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (say javascript.tabSize)?
The text was updated successfully, but these errors were encountered:
Four spaces is a reasonable default IMO. It is not more or less right than 2 space indentation
You can very easily change it
Changing the default now would be super painful, as operations like format would suddenly start reformatting documents for any user that has not set editor.tabSize
I noticed that VSCode adds default
editor.tabSize
as 4Is 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 (say
javascript.tabSize
)?The text was updated successfully, but these errors were encountered: