Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Removing trailing white space: gone?
Removing trailing white space: gone? [message #184830] Tue, 09 November 2004 04:42 Go to next message
Eclipse UserFriend
Hi all,
a question re. the java editor (eclipse 3.0.1 in my case): in earlier
versions of eclipse there used to be a checkbox "remove trailing white
space". That option seems to have gone (at least I seem to be unable
to find that preference setting).

I noticed that recently I often have trailing TABs in my files,
which - after checking in the files into our repository - causes many
of my files to be flagged as different even though they aren't (or
rather the differences are neglectable).

Any idea, how to enable this chopping-off of trailing TABs in 3.x?

Michael
Re: Removing trailing white space: gone? [message #184860 is a reply to message #184830] Tue, 09 November 2004 06:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Michael Moser wrote:

>Hi all,
>a question re. the java editor (eclipse 3.0.1 in my case): in earlier
>versions of eclipse there used to be a checkbox "remove trailing white
>space".
>
Where was that check box?

Dani

> That option seems to have gone (at least I seem to be unable
>to find that preference setting).
>
>I noticed that recently I often have trailing TABs in my files,
>which - after checking in the files into our repository - causes many
>of my files to be flagged as different even though they aren't (or
>rather the differences are neglectable).
>
>Any idea, how to enable this chopping-off of trailing TABs in 3.x?
>
>Michael
>
>
>
>
Re: Removing trailing white space: gone? [message #184869 is a reply to message #184830] Tue, 09 November 2004 06:26 Go to previous messageGo to next message
Eclipse UserFriend
Michael Moser wrote:

> a question re. the java editor (eclipse 3.0.1 in my case): in earlier
> versions of eclipse there used to be a checkbox "remove trailing white
> space". That option seems to have gone (at least I seem to be unable
> to find that preference setting).

Did you probably mean "AnyEdit tools" plugin, that is missing now on your
new installed 3.* Eclipse?
See props screenshot at:
http://andrei.gmxhome.de/anyedit/examples.html

> Any idea, how to enable this chopping-off of trailing TABs in 3.x?

Re-install AnyEdit from
http://andrei.gmxhome.de/anyedit/links.html,
it works fine with Eclipse 3.*

Kind regards,
Andrei Loskutov
Re: Removing trailing white space: gone? [message #185694 is a reply to message #184860] Mon, 15 November 2004 17:12 Go to previous messageGo to next message
Eclipse UserFriend
"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:cmq8ho$omv$1@eclipse.org...
> Michael Moser wrote:
>
> >Hi all,
> >a question re. the java editor (eclipse 3.0.1 in my case): in
earlier
> >versions of eclipse there used to be a checkbox "remove trailing
white
> >space".
> >
> Where was that check box?

Hm - I just fired up an old installation of Eclipse 2.1 and didn't
find that checkbox any more, either.
Strange - but I am sure in some earlier eclipse version (1.x or 2.0?)
there was such an option. Alas, I never paid much attention to this
feature until - by accident - I recently realized that I am frequenty
producing files that have a number of lines with trailing tabs.
These - and that's the annoying reason for my append - in conjunction
with our versioning system often cause many file locations to be
flagged as different and if one then checks, one doesn't see any
visual difference.

Guess I'll have to file a feature request or write (or install) me a
some tool for this... :-)

Michael
Re: Removing trailing white space: gone? [message #185750 is a reply to message #185694] Tue, 16 November 2004 04:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Michael Moser wrote:

>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>news:cmq8ho$omv$1@eclipse.org...
>
>
>>Michael Moser wrote:
>>
>>
>>
>>>Hi all,
>>>a question re. the java editor (eclipse 3.0.1 in my case): in
>>>
>>>
>earlier
>
>
>>>versions of eclipse there used to be a checkbox "remove trailing
>>>
>>>
>white
>
>
>>>space".
>>>
>>>
>>>
>>Where was that check box?
>>
>>
>
>Hm - I just fired up an old installation of Eclipse 2.1 and didn't
>find that checkbox any more, either.
>Strange - but I am sure in some earlier eclipse version (1.x or 2.0?)
>there was such an option. Alas, I never paid much attention to this
>feature until - by accident - I recently realized that I am frequenty
>producing files that have a number of lines with trailing tabs.
>These - and that's the annoying reason for my append - in conjunction
>with our versioning system often cause many file locations to be
>flagged as different and if one then checks, one doesn't see any
>visual difference.
>
>Guess I'll have to file a feature request or write (or install) me a
>some tool for this... :-)
>
>
The tool is called Eclipse 3.1 M3 ;-)
There's a "Remove Trailing Whitespace" command which can even be invoked
on a set of projects. It is currently not bound i.e. you have to assign
a key sequence to it via Keys preference page. The command is in the
File category.

HTH
Dani

>Michael
>
>
>
>
Re: Removing trailing white space: gone? [message #185766 is a reply to message #185750] Tue, 16 November 2004 04:51 Go to previous message
Eclipse UserFriend
Daniel Megert wrote:

> Michael Moser wrote:

>>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>>news:cmq8ho$omv$1@eclipse.org...
>>
>>
>>>Michael Moser wrote:
>>>
>>>
>>>
>>>>Hi all,
>>>>a question re. the java editor (eclipse 3.0.1 in my case): in
>>>>
>>>>
>>earlier
>>
>>
>>>>versions of eclipse there used to be a checkbox "remove trailing
>>>>
>>>>
>>white
>>
>>
>>>>space".
>>>>
>>>>
>>>>
>>>Where was that check box?
>>>
>>>
>>
>>Hm - I just fired up an old installation of Eclipse 2.1 and didn't
>>find that checkbox any more, either.
>>Strange - but I am sure in some earlier eclipse version (1.x or 2.0?)
>>there was such an option. Alas, I never paid much attention to this
>>feature until - by accident - I recently realized that I am frequenty
>>producing files that have a number of lines with trailing tabs.
>>These - and that's the annoying reason for my append - in conjunction
>>with our versioning system often cause many file locations to be
>>flagged as different and if one then checks, one doesn't see any
>>visual difference.
>>
>>Guess I'll have to file a feature request or write (or install) me a
>>some tool for this... :-)
>>
>>
> The tool is called Eclipse 3.1 M3 ;-)

Or try "Anyedit Tools" - http://andrei.gmxhome.de/anyedit ;)
Works with any Eclipse version.
Previous Topic:setting up project that uses Ant in Eclipse 3.0.1
Next Topic:How to call refactorings programmatically?
Goto Forum:
  


Current Time: Tue Nov 04 00:38:02 EST 2025

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

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

Back to the top