Cannot auto-format into multiline on long list (array or object)
My typescript code when onSave keep into long list like below
export type { IRegister, ILogin, IActivation, UserExtended, SessionExtended, JWTExtended }
but I was expecting onSave to be multi-line like this
export type {
IRegister,
ILogin,
IActivation,
UserExtended,
SessionExtended,
JWTExtended
}
I am not using prettier, is it only prettier can do that?
My vscode settings currently like this:
"js/ts.suggest.paths": false,
"js/ts.format.semicolons": "remove",
"[javascript][javascriptreact][typescript][typescriptreact]": {
"editor.tabSize": 2,
"js/ts.suggest.enabled": true,
"js/ts.preferences.quoteStyle": "single",
"editor.defaultFormatter": "vscode.typescript-language-features",
"js/ts.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"js/ts.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
},