S
S
Sergey Frolov2020-05-11 02:05:43
Visual Studio Code
Sergey Frolov, 2020-05-11 02:05:43

How to save classes in css in line and not in column in Visual Studio Code?

How to set up auto-formatting on save in Visual Studio Code so that in css the enumeration of classes separated by commas remains in a line and does not line up in a column?
for example

nav,
footer,
header,
aside {
  display: block;
}

but you need
nav, footer, header, aside {
  display: block;
}

js doesn't like some things too
let {
  src,
  dest
} = require('gulp')...

needlet { src, dest } = require('gulp')...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2020-05-11
@Zordig

As an option , install the Beautify extension , add in the config:

"beautify.config": {
      "brace_style": "collapse,preserve-inline"
    },

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question