How can I align curly brackets to current indent level?

I like my typescript formatted ANSI style (not the default K&R). I set all Braces placement settings to be Next Line. But anonymous functions are handled in an odd way now.  

I would like Webstorm to format like this: 

But the closest I can get is this:

 

In ReSharper, I had no problem achieving this, I can't seem to make this happen in WebStorm. It won't let me attach my settings file, but here is link to download it: https://drive.google.com/file/d/0BzgvtZfXt8MHSDVHRUZPM2YwZ1E/view?usp=sharing

 

Thanks,

~Shea M

0
2 comments

Try disabling Method call arguments | Align when multiline in Settings | Editor | Code Style | TypeScript | Wrapping and braces - does it help?

   
2

This did fix it. I like having that setting enabled for simple parameters. However, it is more important for me to have the braces aligned with the dot, so I will live with it. I can see how what I am asking for is slightly contradictory. :)

Thank you for a prompt and accurate answer.

0

Please sign in to leave a comment.