Skip to main content



      Home
Home » Newcomers » Newcomers » remove all trailing blanks from all java files in a project or how to do a sync ignoring blanks
remove all trailing blanks from all java files in a project or how to do a sync ignoring blanks [message #1854037] Thu, 28 July 2022 16:16 Go to next message
Eclipse UserFriend
There are supposedly settings to remove trailing blanks and to ignore whitespace on sync, but I can't get either to work.

sync (cvs) - window->preferences->general->compare/patch->ignore white space, doesn't work

source format - window->preferences->java->editor->save actions->additional items-> remove trailing white space. Doesn't work when formatting multiple files

If I go to each file, change something and then save, it works, but I have over 600 source files times 2 revisions so I'd like to be able to just select the project and format them all at once. That works for the basic formatting, but the tailing whitespace isn't always touched.

The problem I am trying to resolve is that I have a new rev of my application that has been been updated (new java, jboss, 3rd party jars, etc.). That update process started about a year ago and now I want to import some code changes that have been made in the old rev since then so I want to compare, but the compare is getting muddied up with a lot of whitespace in the comparison so I want to clean up all of the source before re running the compare.

Any thoughts?

eclipse 2022-03 (4.23.0)
Re: remove all trailing blanks from all java files in a project or how to do a sync ignoring blanks [message #1854041 is a reply to message #1854037] Fri, 29 July 2022 03:09 Go to previous message
Eclipse UserFriend
This same option is available via Java -> Code Style -> Clean Up and you can invoke Source -> Clean Up... from the context menu to operate on many files.
Previous Topic:Migrating Eclipse 4.8 Neon-> Eclipse 4.18 version
Next Topic:Eclipse crashes since I tried to install Scala
Goto Forum:
  


Current Time: Wed Jul 23 16:33:03 EDT 2025

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

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

Back to the top