Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Issue removing white space on save
Issue removing white space on save [message #989805] Fri, 07 December 2012 22:13 Go to next message
oliver pike is currently offline oliver pikeFriend
Messages: 10
Registered: December 2010
Junior Member
I have eclipse configured to automatically remove white spaces in my javascript files (both trailing and empty line). I did this under: Window->Preferences->JavaScript->Editor->Save Actions->Additional Actions->Configure->Code Organizing.

However when I save a .js file, trailing white spaces are removed nor are spaces removed from empty lines.

This is with eclipse version 4.2.1.M20120914-1800 on windows 7.

Here are 2 screenshots:

http://www.pikefin.com/images/eclipse1.png

http://www.pikefin.com/images/eclipse2.png
Re: Issue removing white space on save [message #989836 is a reply to message #989805] Sat, 08 December 2012 06:16 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3268
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 12/07/2012 03:13 PM, oliver pike wrote:
> I have eclipse configured to automatically remove white spaces in my
> javascript files (both trailing and empty line). I did this under:
> Window->Preferences->JavaScript->Editor->Save Actions->Additional
> Actions->Configure->Code Organizing.
>
> However when I save a .js file, trailing white spaces are removed nor
> are spaces removed from empty lines.
>
> This is with eclipse version 4.2.1.M20120914-1800 on windows 7.
>
> Here are 2 screenshots:

I have always used this plug-in to accomplish that:

http://andrei.gmxhome.de/anyedit/
Re: Issue removing white space on save [message #990108 is a reply to message #989836] Mon, 10 December 2012 22:31 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
Save Actions only apply to .js files in a JavaScript Source Folder.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Newbe, can't install eclipse on windows 7 64 bit os
Next Topic:Re: Java Project Question
Goto Forum:
  


Current Time: Sun Dec 21 13:44:19 GMT 2014

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

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