Am I able to configure the IntelliJ Java code formatter to keep alignment spaces within statements?
Answered
Hi everyone,
I'm wondering if I'm able to tell the formatter somehow to keep the following code as-is. Note the spaces between interface names and “extends” or variable names and “=” or before the second argument of the method call.

With every setting I tried, the formatter removes those spaces always and resets them to 1:

Am I missing something or is it simply not possible to keep those spaces?
Thanks!
Please sign in to leave a comment.
Hello, it's not supported so far. Please file a feature request at https://youtrack.jetbrains.com/newIssue?project=IDEA and paste the link here, I'll help assign it to our developers.
Additional options for the Java code formatter to just keep spaces within lines for column oriented styling. : IDEA-349855 (jetbrains.com)