Duke icon indicating copy to clipboard operation
Duke copied to clipboard

Duke code formatter

Open fabriziofortino opened this issue 10 years ago • 2 comments

It would be nice to publish a Duke code formatter configuration for the most used IDEs (Eclipse, IntelliJ, Netbeans). To cover Eclipse and IntelliJ we could use Eclipse configurations + this IntelliJ plugin http://plugins.jetbrains.com/plugin/?idea&id=6546.

Any other available alternative?

fabriziofortino avatar Mar 19 '15 10:03 fabriziofortino

I think configs that are supported by the IDEs is the best bet. In addition, we could use CheckStyle in Maven to enforce it at build time.

larsga avatar Mar 19 '15 14:03 larsga

What about pushing an IDE style config in the doc folder (eg: Duke/doc/ide/Duke-eclipse-formatter.xml) ?

I personally like the Google Java Style formatter for Eclipse (https://code.google.com/p/google-styleguide/source/browse/trunk/eclipse-java-google-style.xml) but if you have another one is fine with me. The goal is to have a common style convention for all the contributors.

fabriziofortino avatar Mar 19 '15 23:03 fabriziofortino