IDEA fromatter suggestion
I like IDEA formatter very much.
Is there any way I can use Idea formatter in command line outside IDEA. (Or are there any plans to have that?)
I would like to be able to hook it into our subversion repository so it will format code before checkin. It will be very useful being able to export all the formatting rules from IDEA and run them on server side.
Jerzy
Please sign in to leave a comment.
Hello Jerzy,
No, it's not currently possible to use the IDEA formatter as a standalone
tool.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi,
Thanks for an answer. Would it be very difficult to extract this module as separate jar and make CLI for it?
Or alternatively make possible to export your settings in the format so we can use them in another formatters?
Thank you
Jerzy
Hello Jerzy,
The formatter depends on a lot of underlying infrastructure. It's possible
to make a command-line runner that would run the formatter on a specific
file (actually anyone can do that - there's OpenAPI available for that) but
that will require idea.jar as a whole.
The settings of our formatter are stored in XML, so you're welcome to write
converters from our settings to settings of other formatter tools.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"