Code Style: re-align variables

Issue #2161 new
Eddie Blazer created an issue

One of my favorite features of IntelliJ IDEA is the “Reformat Code…” tool. With other languages like Java, I can re-align variables and their assignments such that:

int i = 1;
decimal fooBar = 2;

becomes:

int    i      = 1;
double fooBar = 2;

This is great and satisfies my OCD.

But alas, this specific formatting option is not available with Apex and IlluminatedCloud. This means me and my colleagues have to either:

  1. Spend countless hours re-aligning our assignment operators making our almost-elegant code look better.
  2. Deal with the ugliness and frustration of reading code with misaligned equal signs. The humanity!

While I am making light of such a seemingly small and insignificant feature, code formatting goes a long way to helping maintain sanity when learning new code, troubleshooting code, refactoring code, or just staring at the beauty and wonder of this amazing thing you built.

So, I’m tagging this as minor, even though my eye is twitching slightly. But, it’s definitely not trivial. 😉

Comments (1)

  1. Log in to comment