Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Remove trailing whitespace on saving files(Eclipse should (IMHO) have an option for removing trailing whitespace when saving)
Remove trailing whitespace on saving files [message #1844325] Thu, 09 September 2021 08:51 Go to next message
Joaquim Homrighausen is currently offline Joaquim HomrighausenFriend
Messages: 8
Registered: September 2021
Location: Stockholm, Sweden
Junior Member

Many editors and IDEs have the option to remove trailing whitespace from lines upon saving the file. I cannot find any such option in Eclipse. Is this not possible?


-joho
Re: Remove trailing whitespace on saving files [message #1844334 is a reply to message #1844325] Thu, 09 September 2021 16:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32163
Registered: July 2009
Senior Member
Window -> Preferences... -> Java -> Editor -> Save Actions -> Configure... -> Code Organization -> Remove trailing whitespace -> All lines

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Remove trailing whitespace on saving files [message #1844339 is a reply to message #1844334] Thu, 09 September 2021 20:12 Go to previous messageGo to next message
Joaquim Homrighausen is currently offline Joaquim HomrighausenFriend
Messages: 8
Registered: September 2021
Location: Stockholm, Sweden
Junior Member

Thank you.

But there's no option to do this for all types of files?

(I'm using this mostly for PHP/CSS/JS/HTML, and Python.)



-joho
Re: Remove trailing whitespace on saving files [message #1844352 is a reply to message #1844339] Fri, 10 September 2021 12:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32163
Registered: July 2009
Senior Member
Not that I know of, no.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Classpath dependancy validator warning
Next Topic:Eclipse won't start Macbook Pro (Catalina)
Goto Forum:
  


Current Time: Fri Jan 28 23:13:27 GMT 2022

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

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

Back to the top