Tabifier plugin
My first plugin is available at:
http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin
It aligns a block of variable declarations so that the variable names are in
a single column. E.g.
int i;
String s;
char c;
becomes:
int i;
String s;
char c;
--
Jordan Zimmerman
Altura International
Catalog City
请先登录再写评论。
Does it uses tabs or spaces?
Tom
On Thu, 18 Jul 2002 14:32:55 -0700, "Jordan Zimmerman"
<jordanz@altura.com> wrote:
Thanks. I was thinking about something like that...
Great plug-in.
Jordan Zimmerman wrote:
Is it possible to configure idea to use this plug-in when it layout code
(after copy/paste or using the menu option "layout code") ?
Jordan Zimmerman wrote:
It uses tabs only right now. At some point, I'll check the editor settings
and insert spaces if that's the editor's preference.
--
Jordan Zimmerman
Altura International
Catalog City
"Thomas Singer" <idea@regnis.de> wrote in message
news:3d37bb73.2576394@news.intellij.net...
>
I'm not sure. The plugin APIs are still very new to me and they aren't
documented. I'll look into it.
--
Jordan Zimmerman
Altura International
Catalog City
"Gael Billard" <gael.billard@highdeal.com> wrote in message
news:3D380A62.1040603@highdeal.com...
FYI
I just put up a new version that checks for non-writable files and puts up
the "Do You Want to Checkout" dialog.
--
Jordan Zimmerman
Altura International
Catalog City
Nice tool!
One API usage comment:
when dealing with editor read/change action it is better to derive from
EditorAction which automatically suports commands. In this case you should
also implement EditorActionHandler abstract class for read actions or
EditorWriteActionHandler for write actions. Last one also takes boring on
firing read-only modification event. Moreover, using action/handler
mechanism you may setup your own handlers for internal editor actions via
EditorActionManager.
--
Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"Jordan Zimmerman" <jordanz@altura.com> wrote in message
news:ah7c6b$4n2$1@is.intellij.net...
>
in
>
>
>
>
>
>
>
"Maxim Shafirov" <max@intellij.net> wrote in message
news:ah9gis$vfl$1@is.intellij.net...
Thank you.
Is there an example or documentation on how to use this? It isn't clear from
looking at the Javadoc. I'll play around with it, though.
--
Jordan Zimmerman
Altura International
Catalog City
Docs are yet to come. It seems one isn't a strong point of IDEA's API.
--
Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"Jordan Zimmerman" <jordanz@altura.com> wrote in message
news:ah9hjt$7m0$1@is.intellij.net...
>
>
from
>
>
>
I've figured out how to use EditorActionHandler and
EditorWriteActionHandler.
Thanks.
--
Jordan Zimmerman
Altura International
Catalog City
There's a new version that respects the "tab character" setting from the
application preferences.
--
Jordan Zimmerman
Altura International
Catalog City