3 ms·
I was curious what their standards for indents were: "Use soft-tabs with a two space indent."[0] Ugh, I work in Gov (DOD) and we recently switched to two spac
by epimetheus 11y ago
I was curious what their standards for indents were:
"Use soft-tabs with a two space indent."[0]
Ugh, I work in Gov (DOD) and we recently switched to two spaces (I'm a Java/PhP dev and have always used 4 spaces) and was hoping to use this to support a switch back, guess that's a no go...
[0] - https://pages.18f.gov/frontend/css-coding-styleguide/format/ https://pages.18f.gov/frontend/css-coding-styleguide/format/
- jacobolus 11y agoAmusingly, the top picture on their page mixes 2- and 4-space indentation: https://18f.gsa.gov/assets/blog/css-guide/css-guide.png https://18f.gsa.gov/assets/blog/css-guide/css-guide.png
- wavefunction 11y agoI prefer tabs for indentation because then the developer can set their IDE to two space or four space or 8 space or whatever, the tab functions as an abstract unit easily convertible to "one level of indentation."
- epimetheus 11y agoTruth be told, I had switched to tabs (4 space tabs), mostly because my JS linter complained about spaces and I didn't have very strong feelings about it (in hindsight, it's probably a simple config setting).