๐ Implement formatting option to include space inside parens, braces, brackets, etc.
Opened this issue ยท 0 comments
sirreal commented
Description
Add formatting option to include spacing inside parentheses, square brackets, curly braces, and angle brackets.
For example, this input:
function id<TypeArg>(x: TypeArg): TypeArg {
return x;
}
const arr = [1, 2, 3];
if (id(true)) {
// โฆ
}
Would be formatted as follows with a "space inside" option enabled:
function id< TypeArg > ( x: TypeArg ): TypeArg {
return x;
}
const arr = [ 1, 2, 3 ];
if ( id( true ) ) {
// โฆ
}
See #2360 (comment).