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 202322

Summary: in active line, trailing white spaces aren't removed
Product: editor Reporter: FabianBlechschmidt
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal CC: BullfrogBlues
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description FabianBlechschmidt 2011-09-19 16:32:17 UTC
I found the issue under the posted URL. I am note sure, wether it is a bug or a feature :-)

It anoise me, so I post it:

http://netbeans.org/bugzilla/show_bug.cgi?id=157561#c19
[...]
> Note that if you have your cursor on an indented line (with only whitespace),
> the whitespace on this line won't be
> removed. Is this a bug, or is it just that users want their cursor to be in
> exactly the same place?
[...]
Comment 1 dasprid 2011-12-03 15:21:20 UTC
If it is considered a feature, there should be an option to disable it, because this can leave unwanted trailing whitespace in a file when you forget to move your cursor to POS0.
Comment 2 BullfrogBlues 2012-06-09 18:14:37 UTC
I agree there should be option to enable or disable this behaviour. 

Fair enough if this is designed behaviour (http://netbeans.org/bugzilla/show_bug.cgi?id=197469), personally I see it as a bug, but meh.
Comment 3 Martin Balin 2016-07-07 07:26:49 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss