Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation for CSS #1326

Open
koeaw opened this issue Oct 24, 2024 · 1 comment
Open

Indentation for CSS #1326

koeaw opened this issue Oct 24, 2024 · 1 comment
Labels
tooling Tools, workflows, integrations etc. relevant to project maintenance, deployment, collaboration

Comments

@koeaw
Copy link
Contributor

koeaw commented Oct 24, 2024

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.

@koeaw
Copy link
Contributor Author

koeaw commented Oct 24, 2024

[moved to MM]

@koeaw koeaw added the tooling Tools, workflows, integrations etc. relevant to project maintenance, deployment, collaboration label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Tools, workflows, integrations etc. relevant to project maintenance, deployment, collaboration
Projects
None yet
Development

No branches or pull requests

1 participant