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)

Answer from Mark on Stack Overflow
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
JS Beautify - Visual Studio Marketplace
March 15, 2024 - Extension for Visual Studio Code - A little wrapper around "js-beautify" for conveniently beautifying CSS/HTML/JS files.
Discussions

Beautifly / Tidy (Javascript) in Visual Studio Code - Stack Overflow
I'm currently giving Visual Studio Code a try. Overall I like the user experience however I can't find some of the things I'm very much used to, in sublime (with the help of extensions.) One of th... More on stackoverflow.com
๐ŸŒ stackoverflow.com
formatting - How to configure code formatters Beautify, Prettier, per project in VS Code - Stack Overflow
Are there features that allow formatter configuration to be specific per project in VS Code? As in, I have one project I want indenting, and another project where I don't want indenting. I feel lik... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to disable automatic formatting options in vscode?
Iโ€™m referring especially to the indentation and the stripping of trailing semicolons, which I find a bit annoying tbh, but I wonder how to disable any of the automatic formatting settings in vscode? I have looked through the settings but couldnโ€™t find anything obviously standing out. More on discourse.julialang.org
๐ŸŒ discourse.julialang.org
0
January 25, 2022
Can you recommend a good all-in-one Beautifier for HTML, CSS, JS, XML, SASS, SCSS, & LESS?
๐ŸŒ r/vscode
13
24
August 20, 2020
๐ŸŒ
Beautifier
beautifier.io
Online JavaScript beautifier
End script and style with newline? Support e4x/jsx syntax Use comma-first list style? Detect packers and obfuscators? (unsafe) Preserve inline braces/code blocks? Keep array indentation? Break lines on chained methods? Space before conditional: "if(x)" / "if (x)" Unescape printable chars encoded ...
๐ŸŒ
GitHub
github.com โ€บ beautifier โ€บ js-beautify
JS Beautifier
The beautified result is sent to stdout unless otherwise configured. ... To use js-beautify as a node library (after install locally), import and call the appropriate beautifier method for JavaScript (JS), CSS, or HTML. All three method signatures are beautify(code, options).
Starred by 8.9K users
Forked by 1.4K users
Languages ย  JavaScript 42.8% | HTML 35.9% | Python 15.5% | Mustache 2.7% | Shell 2.6% | Makefile 0.3% | CSS 0.2%
๐ŸŒ
Medium
thiraphat-ps-dev.medium.com โ€บ the-best-code-formatters-for-vs-code-11704e787f92
The Best Code Formatters for VS Code | by Thiraphat Phutson | Medium
June 3, 2024 - Beautify is another popular code formatter for VS Code that supports various languages such as JavaScript, HTML, CSS, and JSON.
Find elsewhere
๐ŸŒ
Carl de Souza
carldesouza.com โ€บ home โ€บ posts โ€บ how to beautify a javascript file in visual studio code
How to Beautify a JavaScript File in Visual Studio Code - Carl de Souza
September 11, 2020 - We can see the function is on one line: Search for and select Beautify: Click Install: Now, select CTRL + SHIFT + P or the View menu to bring up the Command Palette: Search for Beautify and you will see: Beautify โ€ฆ
๐ŸŒ
Alemoh Rapheal Baja
alemsbaja.hashnode.dev โ€บ recommended-visual-studio-code-extensions-for-javascript-developers
Recommended Visual studio code extensions for Javascript developers
January 29, 2022 - In this article, we'll be looking at awesome vscode extensions for Javascript developers. Vscode is a free open-source text editing tool by Microsoft with support for developing applications using different programming languages. It has built-in Git ...
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Prettier - Code formatter - Visual Studio Marketplace
January 21, 2026 - Extension for Visual Studio Code - Code formatter using prettier
๐ŸŒ
DEV Community
dev.to โ€บ robole โ€บ vs-code-you-dont-need-a-formatting-extension-prettier-and-friends-26cm
VS Code - You don't need a formatting extension (Prettier and friends) - DEV Community
June 2, 2022 - For us, its a pre-commit hook to format with pretty-quick on all staged files. Use whatever IDE you want (although I recommend VScode for the team), but our code will be formatted the same regardless. ... Web Dev full-stack [LAMP] since 2005, but much heavier on the JS stuff these days.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ languages โ€บ javascript
JavaScript in Visual Studio Code
November 3, 2021 - To check if a JavaScript file is part of JavaScript project, just open the file in VS Code and run the JavaScript: Go to Project Configuration command. This command opens the jsconfig.json that references the JavaScript file.
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Beautify - Visual Studio Marketplace
May 2, 2019 - Extension for Visual Studio Code - Beautify code in place for VS Code
๐ŸŒ
YouTube
youtube.com โ€บ watch
- YouTube
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-format-code-with-prettier-in-visual-studio-code
Format Code with Prettier in Visual Studio Code: Setup Guide | DigitalOcean
August 1, 2025 - Open Settings (JSON) via the Command Palette. ... You can apply this setting globally or in a workspace-specific .vscode/settings.json file.
๐ŸŒ
Julia Programming Language
discourse.julialang.org โ€บ tooling โ€บ vs code
How to disable automatic formatting options in vscode? - VS Code - Julia Programming Language
January 25, 2022 - Iโ€™m referring especially to the indentation and the stripping of trailing semicolons, which I find a bit annoying tbh, but I wonder how to disable any of the automatic formatting settings in vscode? I have looked throughโ€ฆ