N
N
nezzard2019-09-13 22:08:38
Visual Studio Code
nezzard, 2019-09-13 22:08:38

How to setup code formatter in vscode?

Good afternoon, tell me please, I write for example a script

let test = "one" == "one" ? "selectedGenres" : "two" == "two" ? "selectedCountries" : void 0;

then after i press alt+shit+f then the code is formatted in
var test =
        "one" == "one"
          ? "selectedGenres"
          : "two" == "two"
          ? "selectedCountries"
          : void 0;

Is there any way I can set up the editor to leave everything on one line?

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