MyRobotLab Coding Style

Keeping track of changes is difficult enough.  Merging differently formatted code makes sad monkeys !

If you use eclipse, we have a file which will make eclipse do the myrobotlab "standard" formatting.

Here it is ! ->  https://github.com/MyRobotLab/myrobotlab/blob/develop/mrl_java_formatter.xml

That's It !

Eclipse powerful auto-format keys.

  • CTRL-SHIFT-F  -  auto format - the file currently in the IDE.  This can even be applied over an entire project.
  • CTRL-SHIFT-O - organize imports - will sort and remove unused imports.  

Simple rule to remember - if you're going to do a lot of formatting, do that as a "separate" commit from other code changes.

Thanks !

 


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kwatters's picture

Eclipse Java Formatter

I've checked in an eclipse java formatter in the root directory of the myrobotlab project.

https://github.com/MyRobotLab/myrobotlab/blob/develop/mrl_java_formatter...

When you check out the code, you can import the settings by loading this file.

moz4r's picture

Thank you, great tip

Thank you, great tip