Is it possible to align member variables like this?
Hi,
Is it possible to align a sequence of member variable declarations like this:
private JButton importButton;
private JButton measureSimilarityButton;
private JSplitPane corpusSplitPane;
private JTextArea outputTextArea;
In other words, to put enough padding between the type and the member variable so that member variables all start from the same column? Let's suppose there are not any comments, etc. between the lines (only white space characters are there).
Thanks in advance,
Behrang
Please sign in to leave a comment.
Please search the plugin list. IIRC, there existed a plugin supporting this
layout.
Tom
I think the Tabifier Plugin does this but installing it throws this exception:
-Behrang
Do you run IDEA with JRE 1.5.*? Does running with JRE 1.6.* help?
For me IDEA starts with Tabifier (JDK 1.6.0_10), and though it throws some exception, some formatting is performed.
Alexander.
Yes, I am running it with JRE 1.5. Is it recommended to use JRE 1.6 on OS X 10.5?
-Behi
Ah, I see. I didn't know you are on Mac and I have no much experience with that OS. AFAIK, on Mac Java 6 is available for 64-bit CPUs only, and the problem is that IDEA takes more memory with it (http://www.jetbrains.net/devnet/message/5225480#5225480). So, I cannot say it is recommended, but should work somehow.
Alexander.
I run IntelliJ on a Mac with Java 6 and I don't have any problems. I do see increase memory usage as mentioned but that doesn't bother me. I have the heap size set at 512 megs for IntelliJ.
You can always email the author of the tabifier plugin and see if they will compile their plugin under 1.5 so it will work if you are running IntelliJ with Java 1.5 (if you don't want to use 1.6 on the Mac).