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.
- Just start eclipse.
- Window -> Preferences -> Java -> Code Style -> Formatter -> Import
- Import this file -> https://github.com/MyRobotLab/myrobotlab/blob/develop/mrl_java_formatte…
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.