[Preface]
In eclipse, you can set spaces at the end of the line to be removed.
For example
Int COUNT = 100; press ENTER
When you have this setting, clicking save code will automatically become the following effect:
Int COUNT = 100; press ENTER
==================================
[Benefits]
This setting is correct when we create a new file.
It also helps our code style.
[Disadvantages]
This setting is not allowed when we modify the existing file !!
Because we need to see the difference between this modification and the previous version.
======================================
[How to set]
(First, install anyedit)
After installing this plug-in
Windows ---> preferences
General
---> Editors
---> Anyedit tools
In the displayed window
Make the first check box unselected
(□Remove trailing whitespace)
======================================
[How to install plug-ins]
Http://download.csdn.net/detail/icaoweiwei/4277453
Put the extracted content
% Eclipse_home % \ eclipse \ dropins. Restart eclipse ~