IntelliJ / TypeScript - Long function parameter type not chopped down

I have this line of code which to my surprise is already "properly formatted"

In my TypeScript code style settings everything is set to "Chop down if long":

I'd like my code to look like this:

Or at least this:

 

What settings do I need to change to achieve the desired code style?

In general, I want code formatting to always produce the same code, regardless of the previous formatting (that's why I unchecked the option to keep line breaks). But when I manually generate line breaks to make the code like the last picture and reformat it also tells me the code is perfectly formatted. So depending on how I manually formatted the code, the auto-format would either give me the code from the first picture or from the last picture. I don't like that. Is there a way to ensure that auto-format is always the same regardless of the previous formatting?

0
1 comment

There are no settings for that, please follow https://youtrack.jetbrains.com/issue/WEB-43078 for updates

0

Please sign in to leave a comment.