dubreuia / intellij-plugin-save-actions

Supports configurable, Eclipse like, save actions, including "organize imports", "reformat code" and "rearrange code".
MIT License
531 stars 101 forks source link

Support feature not change exists import order #345

Closed wulinjie122 closed 3 years ago

wulinjie122 commented 3 years ago

Describe the solution you'd like When press Ctrl + S , the plugin optimized import statement and removed unused import, but it also changed the order of exists import statement.

For what product Hope don't change exists import order.

Intellij IDEA

wulinjie122 commented 3 years ago

because change order will raise a lot of Git diffs.

dubreuia commented 3 years ago

Hello @wulinjie122, thank you for your interest in the plugin. The save-actions plugin doesn't sorts or cleans the imports, it only calls the IDE to do so. If you want the imports not to be sorted, you should configure the IDE likewise (in code style, imports, sort order or something). Let me know if you need anything else. Cheers