Authors:
meo
opensource software

Eclipse Code Formatter

Products: IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio

Vendor: Vojtech Krasa

Email:

Website: http://plugins.intellij.net/plugin/?idea&id=6546

SourceCode: https://code.google.com/...rmatter-intellij-plugin/

Description:

Allows using Eclipse's code formatter directly from IntelliJ.
Solves the problem of maintaining a common code style in team environments where both IDEA and Eclipse are used.

Go to http://code.google.com/p/eclipse-code-formatter-intellij-plugin/wiki/HowTo for instructions how to use it.

Currently supports formatting of Java and JavaScript files and GWT.

It is possible to add support for more file types, feel free to contribute or raise an issue.

Small donations are welcomed.
Downloads: 68331
Rating:
Participated in rating: 13
Version Since Build Until Build File/URL Size (Kb) Date Details
3.6.0. 110.137. . Download 21472.06 2013-04-22 17:26:04 details
2.3.0. 90. 109.*. Download 21288.55 2012-07-12 23:30:50 details
. .
15 updates are hidden show all updates

Recent change notes:


3.6.0 (2013-04-22)
- import order fix
3.5.1 (2013-04-13)
- debug logging
3.5 (2013-01-28)
- generation of new profile Id was not neccesary in some cases
3.3 (2013-01-17)
- support for different format of import order settings file
3.3 (2013-01-14)
- fixed loading of xml profile
3.2.1 (2012-12-09)
- compiled with java 1.6
3.2 (2012-12-08)
- new feature: support for xml config file for JavaScript formatter
3.1 (2012-11-30)
- fixed redundant new line at imports under specific conditions
3.0 (2012-11-10)
- fixed radio buttons at settings form
2.9 (2012-11-09)
- attempt to fix NPE on import optimizing
2.8 (2012-10-15)
- fixed optimize imports action shortcut
2.7 (2012-09-16)
- fixed toolbar action for IDEs which did not support it
2.6 (2012-09-12)
- improved error notification - only baloon is displayed, when formatting fails due to syntax error
2.5 (2012-08-28)
- new JavaScript comments formatting - turned off by default
2.4 (2012-08-01)
- new action for import optimalization, it de/registeres shortcuts of default action on formatter switch.
- automatic turn off of IntelliJ's import optimalization on code reformatting - which causes problems.
2.3 (2012-07-12)
- fixed bug: log spam
2.2 (2012-06-30)
- added button for switching formatters to the main toolbar
2.1 (2012-06-22)
- added support for formatting GWT native methods by Google Plugin for Eclipse
2.0 (2012-05-24)
- enabled for other IDEs
- optimized settings form and added links to Home page and Help.
1.9.x.1 (2012-04-09)
- optimized settings form and fixed scrollbars
1.9 (2012-04-08)
- new feature: support for xml config file for java formatter
1.8 (2012-04-04)
- fixed bug: error when calling a live template from a file which has syntax errors
- fixed bug: duplication of profiles
- fixed bug: quick swich of code formatter now applies to all opened projects which uses same profile
- new donation button :-)
1.7 (2012-03-25)
- new features: profiles, import/export of settings, loading of imports order from eclipse settings file
- fixed import sorting when no order is specified
- deleted old imports formatter
1.6 (2012-03-21)
- fixed bug - new import sorting was sometimes wrong
1.5.x.1 (2012-03-16)
- fixed default import order - if you already installed 1.5, you need to change it manually
1.5 (2012-03-15)
- added new experimental Import optimizer, which should work exactly like the Eclipse's one.
- fixed bug - formatting one file multiple times toggles imports formatting
1.4 (2012-03-10)
- added default language level for java formatter(1.5) and more robust handling of config file.
1.3 (2012-02-21)
- new JavaScript formatting support!
1.2 (2012-02-20)
- fixed bug - it was possible to get an error about wrong line separators
1.1 (2012-02-16)
- fixed error logging
- fixed bug - caret position was sometimes changed after reformatting
- fixed bug - ctrl+shift+enter did not work correctly
- fixed bug - optimizing of imports will be done only when the whole file is reformatted.
1.0 (2012-02-15)
- new FileChooser dialog
- fixed bug with loading of plugin
0.9 (2012-02-14)
- caching of config file
- improved error handling
0.8 (2012-02-13)
- fixed rebuild for 11.1 build 114.65
0.7 (2012-02-13)
- rebuild for 11.1 build 114.65
0.6 (2011-12-1)
- new ability to disable IntelliJ's code formatter for certain file types
0.5 (2011-11-26)
- improved imports group joining
0.4 (2011-11-25)
- fixed bug with optimizing imports
0.3 (2011-11-24)
- new Eclipse like Optimizing Imports function
- notification about successful formatting will come up only when formatted area is longer than 300 character.
0.2 (2011-11-17)
- fixed bug -when file was edited and editor was closed and then file was reformatted without prior saving, changes was lost.
0.1 (2011-11-01)
- Initial release

Known issues:
-when editor is opened, view sometimes moves one line up or down after reformatting
-IntelliJ's import optimizing must be turned off, otherwise this plugin will sometimes not optimize imports on reformatting

General usage instructions:

Comments:

12>
sharpnk
Rated:
2013-04-10 03:42:44
Update: The author did a ninja update after I reported the bug. Now this is fixed. Thanks for the effort and enjoy the beer!
.
sharpnk
Rated: noRate
2013-04-09 21:14:01
This doesn't work for me either. I am on Mac 10.8.3, Intelli J 12.1 and stock jdk 1.6.0_43. Same format file works on windows. Any suggestions? The format file imported fine but it doesn't do anything when I try to reformat the code. I also tried with ctrl+~ to specify code format profile as well, but no dice either.
.
meo
Rated: noRate
2013-01-04 13:02:20
I have no idea, I will contact you by email.
.
kozikow
Rated: noRate
2013-01-03 23:00:26
It doesn't work for me - I download the plugin, configure everything and when I try to format the code it doesn't work (nothing happens). I have tried id on IntelliJ versions: 11.1.4 and 12.0.1 I have used this file: https://code.google.com/p/eclipse-code-formatter-intellij-plugin/source/browse/EclipseFormatter/test/resources/format.xml (with changed java version to 1.6) Do you know what could be an issue?
.
meo
Rated: noRate
2012-11-21 15:40:06
I have seen the tab on new line only when no formatting was done in Eclipse.
.
dimylik
Rated: noRate
2012-11-21 15:30:17
Hi, can you please fix new lines formatter, in Eclipse they use tab character, in IDEA just empty line (enter) All other stuff is working good! Great!
.
meo
Rated: noRate
2012-09-18 17:21:44
Sure, if you have noticed any difference, please create an issue or send me a mail.
.
delor
Rated:
2012-09-18 17:15:12
Would it be possible to organize imports according to Eclipse settings?
.
NeverwinterMoon
Rated:
2012-05-16 13:56:58
This is, hands down, the best and most useful plug-in for IDEA.

I've been having a world of a headache at work where everyone uses Eclipse and is forced to have the same formatting settings... This baby here solved all of my problems.

I can only hope the plug-in will be even more improved and will offer even more features. To show my gratitude and appreciation, I will certainly make a donation to the author of this project!
.
mishmashru
Rated:
2012-04-09 03:04:27
the most useful plug-in so far. It allows to easily use both Eclipse and IDEA in a team working on the same project with the same coding standards for text formating
.
cwj
Rated:
2012-04-04 21:31:00
o.k. I figured it out - my bad.
Update from repository does not work.
Downloaded 1.7.2.1 and unzipped to plugins and it works again.
Thanks again for providing this plugin.
.
cwj
Rated:
2012-04-04 21:11:33
My number one plugin. Love it.
It's stopping me from upgrading to 11.1 because it is so good.
Any idea when it might be compatible with intellijIDEA 11.1 ?
:)
.
ips
Rated:
2012-04-04 16:51:02
great for multi-IDE teams :) also, the author is is great about fixing bugs and considering ideas for improvements
.
Grolubao
Rated:
2012-03-01 14:49:45
Absolutely a must have if you wish to maintain a development environment with both Eclipse and IntelliJ. Works flawlessly, and doesn't need the eclipse executable.

Also, since recently Javascript formatting was added, now we can maintain both IDEs with no problem.

Thank you very much!
.
meo
Rated:
2012-02-14 19:23:02
Thanks for the comments.

It does not crash on my PC, so please contact me if you notice any crashes :-)
.
12>