M
M
MarsFM2019-09-18 11:38:13
Visual Studio Code
MarsFM, 2019-09-18 11:38:13

How to align by variable?

Plz tell me how to align by variable?
Must:

var a,
    b,
    c;
let a,
    b,
    c;
const a = 1,
      b = 2,
      c = 3;

Now:
var a,
  b,
  c;
let a,
  b,
  c;
const a = 1,
  b = 2,
  c = 3;

Settings:
settings.json
{
    "window.zoomLevel": 1,
    "prettier.singleQuote": true,
    "prettier.trailingComma": "es5",
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "editor.formatOnSave": true,
    },
    "files.eol": "\n",
    "git.ignoreMissingGitWarning": true,
}

.editorconfig
root = true

[*.js]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

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