Using eclipse for a long time, but Eclipse has a lot of quick and easy to use features are not used, now in Guangzhou to do projects, a lot of things just heard before or is simple to use, just use the fur, from the people around to learn something, from the Eclipse software use to start sharing.
Eclipse saves the automatic formatting code, only need to set up in Eclipse, Eclipse comes with this feature, but the default is not checked, to achieve this function, only need to select the can. Specific steps: Windows-->preferences-->java---editor-->save actions, tick the "Perform the selected actions on" option on the right Save ", select" format source code "," Format All Lines "
After setting the automatic formatting code on save, there will be no conflict when merging, and it will play a role in code specification.
Automatic formatting of code when eclipse is saved