This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203661

Summary: Make 'Remove Trailing Spaces' configurable by file type
Product: editor Reporter: tomzi <tomzi>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P1    
Version: 7.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 208953    

Description tomzi 2011-10-13 14:52:32 UTC
Usually eg. in  java, jsp, xml files 'Remove Trailing spaces' makes perfect sense.

However eg. in .properties files I wouldn't want NB to remove trailing spaces, since I'd need those sometimes in my internationalization or other things. Currently it does not seem to be possible to have 'Remove Trailing Spaces' enabled for some files, but not for the others.

Product Version = NetBeans IDE 7.1 Beta (Build 201109252201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.0-b17
Comment 1 Milutin Kristofic 2012-04-04 15:47:45 UTC
This should be implemented to next release.
Comment 2 Milutin Kristofic 2012-04-04 15:49:07 UTC
This should be implemented to next release (after 7.2, miss 7.2 features). -> P1
Comment 3 Milutin Kristofic 2013-01-24 16:15:46 UTC
This was fixed in 7.3. Now, there is no global trailing space option, but this option can be set in on save actions.