Tabifier: How do I do this?

Greetings.

I've got a code setup in the "Code Format" tab in IDEA's preferences to reformat code to look like this:


I've tried after this to run through Tabifier, which I LOVE the concept of, but to no avail. This is my output AFTER Tabifying:


Notice how in the second example the following problems appear:

1) the variables as defined don't line up the operator, even though "Align Operators" is checked.

2) The parenthesis have been eaten. Where I previously had () for method calls, I now have ( ) (that is, (]]>) in case that's important) and the spacing for expression parenthesis is hopeless.

I'm using no tabs; the general tab has that turned off; I only want to format code using spaces.

Can anyone help me set up Tabifier's property sheet to get what I want? Thanks.

4 comments
Comment actions Permalink

Oh yeah, forgot to mention a couple things. IDEA 4.5 (build 2235) on OS X, using JDK 1.4.2 Update 1, and there seems to be a bug in the plugin - no code shows up in the preview window anymore, so I'm making changes blind.

0
Comment actions Permalink

Joseph,

Thanks for your report. I'm on vacation for a couple weeks but will look into it when I return.

If the equal signs aren't aligning, it's a bug. Looks like I haven't properly built the plugin for that version of IDEA. Same cause for lack of plugin configuration text.

The plugin should be using the code style settings for spaces within method call parentheses, so you shouldn't get that extra space in "s.length( )". Let me take a look and figure out if the plugin is getting that setting properly from the new version of IDEA. I'm pretty sure this worked under IDEA 4.0.

Sorry for the problems.
-Dave

0
Comment actions Permalink

Joseph,

give version 5.0 of the tabifier plugin a try. It should fix the problems you reported. Let me know if anything is amiss.

-Dave

0
Comment actions Permalink

Out of the box 5.0 worked the first time. You rock, Dave. Sorry to have disturbed your vacation.

We now return you to your regularly scheduled tabifying bliss. :)

0

Please sign in to leave a comment.