I am a big and real fan of Allman style. I am really frustrated for not being able of applying the Allman style to CSS when I format at three code-source editors – Atom, Sublime Text and Visual Studio Code. At Github, I sent the issues, asking for feature addition and nobody cares about it.
As far I understand you are looking for something like PHP Code Sniffer which comes with code beautifier which reformats the whole code according to chosen style guides.
I'm not sure but since you can integrate eslint into vs code. Wouldn't it be possible first to install eslint and then set the brace style like here for .eslintrc.json :
eslint.org/docs/rules/brace-style
And then maybe ignore everything other than css using .eslintignore ?
Tommy Hodgins
CSS & Element Queries
I'm not sure what you mean by 'applying' it - any good editor should let you format your code however you like.
I had to look up what 'Allman style' was though, this particular style is very very uncommon in CSS files so you're unlikely to run into it in many existing CSS libraries and frameworks, or in tutorials.
Most CSS is formatted like this:
selector { property: value; property: value; }Even though it's valid to write it many many different ways:
selector{property:value;property:value}selector { property : value ; property : value }CSS has no concept of line breaks in the language, so where you're free to add any amount of whitespace you really are free to add it however you like it!