JetBrains/gradle-idea-ext-plugin

Support importing code style scheme (exported by IntelliJ)

ewirch opened this issue · 10 comments

This is probably a simple change, but would instantly allow to control all Code Style settings.

Importing existing schemes should overwrite them.
Importing a scheme should also select it.

did you consider using .editorconfig configuration file?

Yes. Its too limited. Does not even support max. line lengths ("hard wrap at").

bric3 commented

Agreed .editorConfig only allow to configure spacing stuff, and do not take into account all the options available in the IJ code style settings, like import order, or alinement of exception, methods, etc. While I get that porting all settings to this plugin can be tedious, I think this plugin could tell IJ to load a style scheme file.

bric3 commented

This one maybe be a solution to #40

bric3 commented

@ewirch @nskvortsov How can we contribute this ?

What do you mean by "how"? Code it and create a pull request.

bric3 commented

@eriwen The thing about how: Is there any documentation material to understand how this plugin work and integrates with IJ. Also is there any setup to do, the editor shows compiler error in RunConfigurations.groovy, yet under the hood this seems to compile.
A contributing guide would be quite welcome ;)

A contributing guide would be quite welcome ;)

I guess so. I think for the author the project is too small to come up with a contribution guide.

closing, as code style is fully configurable by .editorconfig