Bug 356012

Summary: Wish: Extra whitespace should be highlighted in git diff output
Product: [Applications] kdevelop Reporter: Jamie Smith <smithjd15>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: mail
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jamie Smith 2015-11-28 06:07:05 UTC
If there is extra whitespace in diffs, reviewboard highlights it in red blocks. KDevelop git
Show Differences output should do the same thing.

Reproducible: Always

Steps to Reproduce:
Whitespace is hard to spot...git->Show Differences... .

Actual Results:  
The additional whitespace shows up only after the diff is posted to ReviewBoard or caught in an editor somewhere else, which is annoying and time-consuming to correct.

Expected Results:  
Git Show Differences should show red blocks or some other indication that extra whitespace is probably present, much like reviewboard's diff viewer.
Comment 1 Francis Herne 2016-03-14 13:03:21 UTC
The setting 'highlight trailing spaces' (Editor -> Appearance -> Whitespace Highlighting) applies to the diff view.

The appearance isn't so conspicuous by default, but you can change the colour 'Tab and Space Markers' to something colourful.

Additionally, setting 'Remove trailing spaces' (Editor -> Open/Save -> Automatic Cleanups on Save) to an option that isn't "Never" will prevent the whitespace from existing in the first place.
Comment 2 Jamie Smith 2016-03-17 00:12:03 UTC
Thanks, I should have looked through the editor options more thoroughly.