Auto-complete JavaScript braces in VS Code

Viewed 82

I don't like most auto-completion of parentheses/quotes in VS Code, but I would like to have braces auto completed. That is, if I type:

function foo(thing) {

I would like to get the following (where | is the cursor):

function foo(thing) {
   |
}

And similarly for if etc.

Is there a way to achieve this in VS Code?

1 Answers

It's a build in feature.

  1. Click Manage icon on the bottom left corner -> Settings

enter image description here

  1. Clear Search Settings

  2. Click User Tab-> Text Editor->

Auto Closing Bracklets -> Always

Auto Closing Quotes -> Never

enter image description here

Related