EclipseCodeFormatter
EclipseCodeFormatter copied to clipboard
Create cleanups like "Use blocks in if/while/for/do statements"
intellij already does some thing, we need to just hook them somehow.
+1. Yes, please Implement Clean Up Settings from Eclipse
Yes, someone pls implement it :-)
:+1:
+1
+1
It would be nice to use the clean up xml file also. We need exactly this setting: setting id="cleanup.use_blocks" value="true"
Pull request welcomed, something like that is implemented in https://plugins.jetbrains.com/idea/plugin/7642-save-actions
I miss only adding {} to the blocks. Because this is set in Eclipse in the Clean Up settings. "Yes, please Implement Clean Up Settings from Eclipse" As without code cleanup Eclipse formatting cannot be applied to IDEA as it is. Any plans on this? Maybe only this setting from the cleanup?
For example, without this you will receive formatting like this: if (true) return; else return;
instead of:
if (true) { return; } else { return; }
We are using Member Accesses and Missing Code tab also from the clean up. It's a pretty cool stuff in Eclipse.
You've got such differences:

I have no use for this or plans to implement it. But I am willing to click on Merge pull request button...
not sounds good
FYI This plugin only provides formatting features. Cleanups in Eclipse are refactoring actions, not formatting actions. Different API, different engine.
So file feature requests at https://github.com/dubreuia/intellij-plugin-save-actions like @krasa said.
It probably wouldn't be a problem to add such features here, you could just copypaste it from the Save Actions plugin.
This works great with the save-actions plugins, IMO we could close this issue.
https://github.com/dubreuia/intellij-plugin-save-actions is archived, forked here https://github.com/MarvelousAnything/intellij-plugin-save-actions Another fork seems to have been added to Intellij plugin marketplace.
Wouldn't it make sense to add it as another goal to this plugin?