Code cleanup Typescript object literal

Hello,

I'm looking to reformat my code like the const C in the screenshot, I've found a way to have the A & B formatting but not like the C (Visual Studio default format)

Can you share me the settings to check to have this formatting ?

Thank you.

export const A = {
a: "a"
};

export const B =
{
b: "b"
};

export const C =
{
c: "c"
};
1 comment
Comment actions Permalink
Official comment

Hello David,

 

Sorry for the delay in responding.

Currently, there's no way to format code such way, please refer to the following feature request - https://youtrack.jetbrains.com/issue/WEB-7122

Please feel free to comment or vote for it.

Thank you.

Please sign in to leave a comment.