Skip to content

Double-click hidden-section gutter button to fully expand the section #11622

@bradleyjames

Description

@bradleyjames

Describe the solution you'd like?

When the Code Review panel's diff editor has a large hidden context section, the user has to click the gutter expand button multiple times — once per 25 lines — to reveal the whole thing. Add double-click as a shortcut: double-clicking the gutter expand button fully expands the hidden section in one action.

Single-click keeps the existing chunked behavior so users can still choose to reveal a little at a time.

Is your feature request related to a problem? Please describe.

For hunks separated by hundreds of unchanged lines (or hidden regions at the top/bottom of a file), users currently click 4–10 times to see all the context between or around hunks. There's no keyboard shortcut and no "expand all" affordance at the gutter level.

Additional context

  • macOS / Windows / Linux all conventionally use double-click for "do the maximum version of this gesture" on similar controls.
  • The chunked single-click behavior should remain as the granular option.
  • Adjacent gutter interactions (diff-hunk sliver toggle, add-context, revert) shouldn't change.

Operating system (OS)

macOS, Windows, Linux

How important is this feature to you?

3 (Moderate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:code-reviewGit diff views, review UI, review comments, and PR-focused agent flows.enhancementNew feature or request.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions