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
dysbulic πŸ™
dysbulic πŸ™β€’8mo ago
Is this in VS Code & do you have Prettier installed? (It sounds like Prettier.)
j0hnnyhnrx
j0hnnyhnrxβ€’8mo ago
Yes. I use VS Code & Prettier It's weird tho.. I used Prettier before and can't remember this happening
dysbulic πŸ™
dysbulic πŸ™β€’8mo ago
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.
j0hnnyhnrx
j0hnnyhnrxβ€’8mo ago
Hmm let me see!! I can't find it. I can se eprettier there but no on/off option
dysbulic πŸ™
dysbulic πŸ™β€’8mo ago
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".