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 269147 - On Save: Remove Trailing Whitespace must add an option "All Lines Ignoring Caret"
Summary: On Save: Remove Trailing Whitespace must add an option "All Lines Ignoring Ca...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2016-11-28 10:29 UTC by terje7601
Modified: 2016-11-28 10:29 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2016-11-28 10:29:48 UTC
As the summary says. I don't want to have to configure a startup parameter (see comment 57 in issue 13063) for having whitespace on the current line removed.

I know the current behavior is "as designed", but in my opinion it's unintuitive and annoying (even more so because, after placing the caret on another line & saving again, the trailing whitespace still isn't removed).

So I'd like to have an extra option "All Lines Ignoring Caret" which removes trailing whitespace on all lines, regardless of where the caret is & thus possibly moving the caret.

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)