If you search the settings for css format you will see there are a few there: newlines between selectors and rules, etc.
So you could disable CSS > Format: Newlines Between Selectors for example.
In addition, you can make css-specific settings like this (in your settings.json):
"[css]": {
"files.insertFinalNewline": true
}
And make sure the setting CSS > Format: Enable is set to true. (the default is true)
Beautifly / Tidy (Javascript) in Visual Studio Code - Stack Overflow
formatting - How to configure code formatters Beautify, Prettier, per project in VS Code - Stack Overflow
How to disable automatic formatting options in vscode?
Can you recommend a good all-in-one Beautifier for HTML, CSS, JS, XML, SASS, SCSS, & LESS?
Videos
If you want to beautify the code, you can just press
Ctrl+Shift+P and type format code or press Alt+Shift+F
It correctly indents my code so it seems like that is what you are looking for, if not you might want to give an example.
You can use the shortcuts to beautify the code in Visual Studio Code:
- On Windows: Shift + Alt + F
- On Mac: Shift + Option + F
- On Ubuntu: Ctrl + Shift + I
As per the Programming language (PHP, HTML, JavaScript, ASP, JSP, etc.) it will ask you to install a package, after installation you can use above shortcuts.