Anton Pegov
Anton Pegov

Reputation: 1474

Is it possible to setup VSCode to show closing tags (or brackets) on the same line as all normal code editors do?

I am waiting for this feature for years and finally thinking to get back to WebStorm just because the Devs just ignoring this simple feature. All plugins I've tried that should fix that closing bracket bug (from user perspective this is deffinatly a bug) are too buggy at the moment. Maybe someone found good working plugin to fix this?

PS. Really? Looks like those devs are minusing my post )))

enter image description here

Upvotes: 1

Views: 185

Answers (3)

Anton Pegov
Anton Pegov

Reputation: 1474

@Matt, I hope they finally will make it someday )

Btw, stop silently disliking this post, stand up and say loudly, where I am not right!

enter image description here

enter image description here

As I understood, they says "If you want it, than make it yourself". Perfect approach )))

Upvotes: 1

Anton Pegov
Anton Pegov

Reputation: 1474

Ok, I managed to get what I want using this VSCode plugin: Explicit Folding

Just instaled plugin and added this to VSCode's settings.json:

"folding": {
 "*": [
  {
    "begin": "{{{",
    "end": "}}}"
  },
 ],
 "typescript": [
  {
    "begin": "[",
    "end": "]",
  },
  {
    "begin": "{",
    "end": "}",
  }
 ],
 "typescriptreact": [
  {
    "begin": "{/*",
    "end": "*/}"
  },
  {
    "begin": "[",
    "end": "]",
  },
  {
    "begin": "{",
    "end": "}"
  },
 ]
}

Upvotes: 0

Matt Bierner
Matt Bierner

Reputation: 65643

As of VS Code 1.39, you cannot change how folding works. This request feature is tracked by https://github.com/microsoft/vscode/issues/3352

Upvotes: 2

Related Questions