EclipseCodeFormatter icon indicating copy to clipboard operation
EclipseCodeFormatter copied to clipboard

eclipse configuration file to IDEA configuration export function

Open tonycody opened this issue 4 years ago • 4 comments

Can you provide formatted configuration files directly exported to IDEA? Or directly export and overwrite IDEA format configuration. Because, sometimes I want to modify the configuration, I still have to go to eclipse to operate it, and then export the configuration to IDEA, which is too troublesome

tonycody avatar Jun 19 '20 00:06 tonycody

yes

krasa avatar Jun 19 '20 02:06 krasa

Actually, I am not sure what you mean.

I can provide build-in eclipse profiles and even read workspace config eclipse-workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs, so you don't have to export it or use project specific profile.

Then I could export them to a properties or xml files - but why would you edit them manually?

By overwrite IDEA format configuration I hope you don't mean this? image

krasa avatar Jun 19 '20 14:06 krasa

Actually, I am not sure what you mean.

I can provide build-in eclipse profiles and even read workspace config eclipse-workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs, so you don't have to export it or use project specific profile.

Then I could export them to a properties or xml files - but why would you edit them manually?

By overwrite IDEA format configuration I hope you don't mean this? image

The purpose of using this plug-in is to switch from eclipse to IDEA, and it is expected to use eclipse configuration, but IDEA itself has some personalized configuration. after using this plug-in, the personalized configuration of IDEA itself will not take effect, and if it can be exported to IDEA configuration, you can not use eclipse configuration

tonycody avatar Jul 31 '20 01:07 tonycody

@tonycody I think you misunderstood how this plugin works and what the aim is:

  1. it's purpose is to align developers on the same project using both Eclipse and IDEA. The developers using IDEA agree to disable IDEA's formatting in favor of Eclipse
  2. There is no way to edit Eclipse formatter settings from within IDEA. Eclipse supports per-module formatting and the formatting is not compatible on settings level (there are settings Eclipse does not support and there settings IDEA does not support or implements differently)
  3. If you want to use only IDEA and switched from Eclipse, then feel free to import Code formatter settings directly from Eclipse formatter Xml file and use IDEA without this plugin.
  4. This plugin internally use eclipse.jar, it delegates formatting to Eclipse, nothing more. The files must be present in structure Eclipse would expect

ladislavlencucha avatar Apr 12 '23 15:04 ladislavlencucha