wmyywm / eclipse-code-formatter-intellij-plugin

Automatically exported from code.google.com/p/eclipse-code-formatter-intellij-plugin
0 stars 0 forks source link

Add instructions how to change the organise imports settings to fit most the eclipse behavoir #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
you can tweak the order and style of imports in this section:

Project Settings / Code Style / Imports

maybe you can point to this settings

in the import layout you can try to have a more eclipse style order of imports 
if you add your own packages etc. 

Original issue reported on code.google.com by nietz...@gmail.com on 23 Nov 2011 at 12:50

GoogleCodeExporter commented 9 years ago
FYI: this are my settings. maybe there are better ones.

Original comment by nietz...@gmail.com on 23 Nov 2011 at 12:55

Attachments:

GoogleCodeExporter commented 9 years ago
even with this settings it is not good enough.

i think it could be easy to modify intellij to make blank line between every 
group. easiest quickfix would be some post processing, instead of modifying 
existing imports optimizer.

problem is that eclipse sometimes merge two similar groups together... but it 
is really wierd, i have spend a lot of time figuring out algorithm, also i 
looked into eclipse's source code but it is a mess.

Original comment by vojta.kr...@gmail.com on 24 Nov 2011 at 9:54

GoogleCodeExporter commented 9 years ago
I just released new version, it is currently avaible only in IntelliJ plugins 
repository.

blank line is added between every import group with ability to manually define 
which groups will be joined together. 

instructions are on 
http://code.google.com/p/eclipse-code-formatter-intellij-plugin/wiki/HowTo

Original comment by vojta.kr...@gmail.com on 24 Nov 2011 at 8:13