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
Re: #1324 – can we set the default indentation for CSS to 2 spaces instead of 4?
4 used to be the standard for HTML, CSS and JS "back in the day", but IME, 2 spaces is much more prevalent these days for all 3 of those. See also e.g. code examples on major CSS resources websites.
The main advantage, IMO, is having to do less horizontal scrolling, which is especially relevant once blocks/a hierarchy come into play.
I also think it would make sense to have consistency between HTML, CSS and JS, i.e. to not use 2 spaces for some of those and 4 for others.
The text was updated successfully, but these errors were encountered:
Re: #1324 – can we set the default indentation for CSS to 2 spaces instead of 4?
4 used to be the standard for HTML, CSS and JS "back in the day", but IME, 2 spaces is much more prevalent these days for all 3 of those. See also e.g. code examples on major CSS resources websites.
The main advantage, IMO, is having to do less horizontal scrolling, which is especially relevant once blocks/a hierarchy come into play.
I also think it would make sense to have consistency between HTML, CSS and JS, i.e. to not use 2 spaces for some of those and 4 for others.
The text was updated successfully, but these errors were encountered: