Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681452y@karma and then reformat an entire document because one : becomes out of alignment. 🤷♂️
-
karma110512y@C0D4 no then I just shift it up. Still scans better than clutter. But this is why I was like asking. I'm not a fan but the right hand bothers me more often then the left hand operator, thats where the issues live.
I had a junior reformat his css alike this or without the
Property : mess;
Property:moermess;
Property :mess;
This disturbs me even more. He hated me for it but it was a one time lesson and he stuck with consistency. -
That is a very conservative way of indenting code. Almost looks like an assembly listing - but with surprisingly long mnemonics and comments...
-
bioDan61592yIts a CSS beautifier plugin in VS Code.
The LESS/SCSS/SASS pre-processor will minify it for production anyways.
Personally, i dont like it. I find its orderliness disturbing. -
TBH I feel bad for the junior dev cuz no way I would put up with that.
SCSS + ESlint + stylelint all the way. A formatting like this would probably be hard to read or impossible with CSS preprocessors. Also, fuck editor defaults. Always causes trouble when working in team -
hack64562y@iSwimInTheC yes I have very big brain. Sometimes I use visual basic in excel to change styles. My website is basically excel on steroids.
-
Grumm18052yPhones are not used to take screenshots...
I don't like this kind of indents.
What if there is a new line longer than all the others ?
Just keep everything nice and compact.
Most IDE's format CSS pretty wel using colors for the values. -
ltlian21962yAnything that's not default just ends up being a chore to maintain and keep consistent. I'll eat my words if I see a 7 year old project with commits from 10 different devs where this formatting was kept consistent and provided tangible benefit at no cost.
-
Prutser2222yLine 19 is not formatted correctly.
Missing a space after “:”.
Edit: proving the point that it is a hell to maintain consistently -
Use a linter like a grown up so I don’t have to break my space key to keep it like that.
-
if the values column were comments, i'd say "like that".
but since the values column is not comments, but actual values, i say "fuck no, that guy should get run over by a train"
Related Rants
How u indent your css? Pls?
rant
css
that
indent