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.
The diff-sidebar provides a quick way of checking changes made to a file that is versioned by showing colored markers. The options dialog (Tools -> Options -> Miscellaneous -> Diff tab) offers 3 options (regarding the internal diff): "Ignore Leading And Trailing Whitespace", "Ignore Changes In Inner Whitespace", and "Ignore Changes In Case". Make these aforementioned options bindable by shortcut (Tools -> Options -> Keymap). Background: the diff-sidebar marks local edits based on options set in the diff setup. However, the file view (and editor tabs) mark them as edited even if whitespace only has been changed. This can result in a file marked as changed, but changes are not visible without going to the options dialog. If changing behaviour was bindable to a shortcut, it would be helpful to quickly check versioned files that otherwise would only clutter commits.
Created attachment 134065 [details] Proposed patch I like to propose the given patch to solve the issue. It introduces new actions and registers them to Menu|View|Diff. Shortcuts for the new actions can be set in the keymap settings. Please review and commit, if the patch is appropriate. Thank you.
Created attachment 134066 [details] Patch in action
anything going to the main menu must pass through the uireviews
Created attachment 134094 [details] Proposed patch without registering to main menu (In reply to comment #3) > anything going to the main menu must pass through the uireviews I understand. I removed the menu registration. The actions are still available and can be used via shortcuts. Is this a compromise? In the worst case I'll take the patch and create a 3rd-party module from it.
Created attachment 134095 [details] Patch in action (no main menu registration, but actions can still be used via assignable shortcuts)
core-main #40a05d49aa3e
Integrated into 'main-golden', will be available in build *201305062300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/40a05d49aa3e User: Benno Markiewicz <markiewb@netbeans.org> Log: Issue #170769 - Provide ability to toggle diff mode with shortcut