@sportredwhite

Как выравнить по переменной?

Подскажите плз, как выравнить по переменной?

Должно:
var a,
    b,
    c;
let a,
    b,
    c;
const a = 1,
      b = 2,
      c = 3;


Сейчас:

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


Настройки:

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
  • Вопрос задан
  • 79 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы