Skip to content

User preferences to allow Hide Whitespace Changes enabled by default

Description

I prefer reviewing MRs with whitespace changes hidden. It is nice that there is a "Hide Whitespace Changes" button in the Changes tab, but its default is set to "Show" instead of "Hide". I personally prefer to have the whitespace changes always hidden so that I can reduce line diff noise while reviewing. This means that I have to press this button every time I review code.

Proposal

It would be nice if there was a way to set a personal preference for a default of whether I view whitespace changes or hide them in MRs I view through my Gitlab account. Do note that I am not vouching for the current default of "Show Whitespace Changes" to be changed, I understand why that could be a preferred default for some Gitlab users.

Links / references

Documentation blurb

Overview

Same as "Proposal".

Use cases

Developers and others who review code through MRs, who prefer to always have whitespace changes hidden.

Feature checklist