V
V
Vasya Bulka2022-04-07 12:36:54
css
Vasya Bulka, 2022-04-07 12:36:54

How to customize SCSS formatting in VSCODE?

After formatting, the styles (TAGS and CLASSES) look like this:

h1,
h2 {
    margin: 0;
    padding: 0;
}

It is necessary that tags and classes are formatted in one line:
h1, h2 {
    margin: 0;
    padding: 0;
}


How to set up the formatter?

PS In settings.json the default formatter is Prettier Expansion.
{
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question