Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Remove trailing white spaces on all lines(Remove trailing white spaces on all lines in Java / Code Style Clean Up doesn't work.)
Remove trailing white spaces on all lines [message #656480] Fri, 25 February 2011 20:30 Go to next message
Laurence Gonsalves is currently offline Laurence GonsalvesFriend
Messages: 4
Registered: February 2011
Junior Member
When I enable "Remove trailing white spaces on all lines" in Preferences / Java / Code Style / Clean Up it doesn't seem to do anything. Trailing spaces, whether on an "empty" line or not, are not being removed.

What could I be doing wrong?
Re: Remove trailing white spaces on all lines [message #656489 is a reply to message #656480] Fri, 25 February 2011 21:13 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 25-Feb-11 13:30, Laurence Gonsalves wrote:
> When I enable "Remove trailing white spaces on all lines" in Preferences
> / Java / Code Style / Clean Up it doesn't seem to do anything. Trailing
> spaces, whether on an "empty" line or not, are not being removed.
>
> What could I be doing wrong?

I don't use that, but I think you have to select a block of source text
and choose Source -> Format for that to work.

If you just want to have this done each time, for example, you save your
file, then use Andrei Loskutov's plug-in, AnyEdit.

http://andrei.gmxhome.de/anyedit/
Re: Remove trailing white spaces on all lines [message #656493 is a reply to message #656480] Fri, 25 February 2011 22:07 Go to previous messageGo to next message
Laurence Gonsalves is currently offline Laurence GonsalvesFriend
Messages: 4
Registered: February 2011
Junior Member
Thanks. I hadn't realized that these options aren't automatic on save. I'll try AnyEdit.
Re: Remove trailing white spaces on all lines [message #656495 is a reply to message #656493] Fri, 25 February 2011 22:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Laurence,

Note that there are "Java->Editor->Save Actions" preferences you can
enable so this, i.e., so arbitrary cleanup will be done when saving.


Laurence Gonsalves wrote:
> Thanks. I hadn't realized that these options aren't automatic on save.
> I'll try AnyEdit.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Remove trailing white spaces on all lines [message #656508 is a reply to message #656495] Fri, 25 February 2011 23:57 Go to previous message
Laurence Gonsalves is currently offline Laurence GonsalvesFriend
Messages: 4
Registered: February 2011
Junior Member
Thanks. That's even better.

[Updated on: Fri, 25 February 2011 23:57]

Report message to a moderator

Previous Topic:tomcat starts, but cannot get to my webapp
Next Topic:So many Eclipse types/versions - which one to use ?
Goto Forum:
  


Current Time: Thu Apr 25 04:31:32 GMT 2024

Powered by FUDForum. Page generated in 0.08690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top