Reformat code as stand-along tool
Hi, all.
In my company most of core developers use Intellij IDEA. It is great IDE and it provides a lot of kick-ass features.
Among them reformat code&optimize imports. So we've decided to store our code-style conventions as intellij idea settings.
But it would be really nice to allow some of them who do not use idea to use formatter. The best way, I think, is to create Ant&maven plugin.
I would like to implement something like this using OpenAPI or so. Is it possible to do?
请先登录再写评论。
Hello Anatol,
Some of the APIs you need for this are available, but the main problem would
be initializing the necessary subsystems of IntelliJ IDEA correctly from
a standalone application. This is tricky to do for external developers, and
we don't have any documentation available for that.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
In such case do you have any plan to provide stand-along tool (like inspector) for reformatting code.
As I understand it is GUI-independent part and does not require heavy IDEA initialization. Just to read project (or even just reformatting) settings.
So this functionality could be distilled from IDEA core. AFAIK there will no be any competitors in this field, cause Jalopy is very outdated and not so powerful as IDEA's reformatter.
Hello Anatol,
The formatter is based on PSI, which requires quite a lot of initialization.
Even if we do provide a way to run the formatter as a standalone tool, it's
very unlikely that we'll market it as a separate product.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Yes, although not a separate product, please do make it available for TeamCity (is standalone necessary for this?) so IDEA's awesome formatting can be applied during pre-commit!
http://www.jetbrains.net/jira/browse/TW-1686
Thanks,
Jon