Search code examples
typescriptformatwebstorm

Align type declarations vertically in WebStorm


How do you force WebStorm to align type declaration values vertically when running "Reformat Code"?

I have this:

enter image description here

And I want this when I run "Reformat Code".:

enter image description here

I have tried enabling Align on value in the "Wrapping and Braces" settings for TypeScript, but running "Reformat Code" brings the values back towards the colon.

enter image description here

^^ doesn't work when reformatting code.


Solution

  • Not currently possible, please follow WEB-43078 and linked tickets for updates