0
votes

I would like to be able to auto format my code so that when I input the following (or something similar where | is my cursor):

if (condition) {|}

When I press 'Enter' I want it to look like this:

if (condition) {
  |
}

Currently it looks like this:

if (condition) {
  |}

I had an extension that did all of that for me, but I had to purge some extensions and I am unable to find it again. The closest question I have been able to find was this, but the solution did not work for me.

Whichever extension I was using also applied this to css classes, functions, variable declarations, and any other bracket/parenthesis multiline statements.

If there is some vscode setting that could do the same thing then I would be ok with that as well.