[ANN] Tabifier 2.1 released

The tabifier plugin aligns various syntactic elements of Java declarations
and assignment statements.

For example, I like to align variable declarations and assignment statements
like this:

int v1; // loop variable
String s2; // second string
public static PrintWriter p;
private static boolean debugging = true; // initialize
private static OutputStream outputstream = null;

outputstream = new FileOutputStream(f, true);
p = new DebuggingPrintWriter(outputstream, true);
IDEA likes to format them with single spaces, like this:

int v1; // loop variable
String s2; // second string
public static PrintWriter p;
private static boolean debugging = true; // initialize
private static OutputStream outputstream = null;

outputstream = new FileOutputStream(f, true);
p = new DebuggingPrintWriter(outputstream, true);
The tabifier plugin automatically reformats the text into the first version,
or any variation of it you choose.

The latest version of Tabifier (version 2.1) has many more alignment options
than previous versions, and operates on Java declaration and assignment
statements only. For example, it can be used like the Code Layout tool to
reformat all declarations and assignments in the file. Or continue to use
it on a selection, as before.

See http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin for full
details.

This plugin is based on the Psi (program structure information) tree. It
has been tested with both IDEA 3.0.x and Aurora build 813.

Please let me know if you find it useful, buggy, or in need of improvements!

Thanks,
-Dave


1 comment

Beautiful -- my tastefully aligned example was hammered when the fixed font
was replaced!

Please visit the http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin
page to see the example as it was intended to be viewed.


0

Please sign in to leave a comment.