Skip to content

Allow for conditional side-by-side or inline diffEditor #123111

@NiloCK

Description

@NiloCK

I like side-by-side diffs. I'm also pretty happy with inline diffs. What I don't like is finding myself looking at side-by-side diffs in a narrow editor window:

image

My suggestion aligns with responsive web design - the diffEditor should be configurable to run side-by-side above a certain breakpoint, and inline below.

proposed configuration flag:

diffEditor.renderInlineBreakpoint: number

The renderInlineBreakpoint value could be pixels (probably the easiest implementation path) or a character count (probably a finer-grained tool).

This flag would have no effect if diffEditor.renderSideBySide is set to false.

(Famous last words) This seems like a pretty straightforward patch to write. I could have a look at it myself if I receive some feedback to the effect that there are no anticipated blockers with respect to merging something like this into main.

Metadata

Metadata

Assignees

Labels

diff-editorDiff editor issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions