How can I align variable declarations?

Answered

I can't keep the alignment when reformatting. Aren't there any related options?

0
4 comments

Hi, have you tried Editor | Code style | Group Declarations | Align Variables in columns?

2
Avatar
Permanently deleted user

Thanks. It works well now.

0
Avatar
Permanently deleted user

I'm sorry but it is still impossible to align when assigning values to instance variables.(it only works when declaring them) How to align this?

0

It's a known problem, should be fixed in a next major release: https://youtrack.jetbrains.com/issue/IDEA-146487

0

Please sign in to leave a comment.