Line wraps after comma CSS
Hey guys!
So when I'm on css and add commas like:
h1 , h2 {
color : Black
}
Automatically, after the comma, it's going to wrap to the next line:
h1,
h2 {
color: Black
)
How can I change it and have it on the same line?
I use prettier and was wondering if this might be a setting issue.
5 Replies
Is this in VS Code & do you have Prettier installed? (It sounds like Prettier.)
Yes. I use VS Code & Prettier
It's weird tho.. I used Prettier before and can't remember this happening
There's a "Formatting" entry on the right side of the status bar at the bottom of VS Code. Click it to turn formatting off & see if it resolves it.
Prettier is self-described as "opinionated", meaning it has minimal configuration & you're mostly stuck with the default behaviors.
Hmm let me see!!
I can't find it. I can se eprettier there but no on/off option
Well, crap. I've screwed around with my config enough I must have turned something on somewhere to enable itβ¦
I found it. It's an extension called "Formatting Toggle".