I want to do indentation like this. (Arrays are not listed on one line, but on two lines.)
But in my VSCode, it does not indent like the picture below.
How do I set it up? The language is JavaScript.
Go to user settings (by Ctrl + ,
) and search for editor.wrappingIndent
. Change the value to indent
or deepIndent
.