Vscode: Suggestion: collapse unchanged regions in diff

Created on 29 Feb 2016  Â·  10Comments  Â·  Source: microsoft/vscode

When viewing a diff (2 pane or inline) it would be useful to collapse the unchanged lines. This helps focus in on just the changes, especially when the changes are few an spread out.

diff-editor feature-request

Most helpful comment

This is, by far, my most wanted feature. It is standard in many other tools, specially when doing source control diffs.

I'd appreciate some comment from the team as to why is not being considered. Is it too hard to implement?

All 10 comments

any update on this one? Very rough transition from text-based git to VSCode because of this feature lacking.

bump...

This would be very nice to see. Right now, with big files I'm opening Vim (with fugitive plugin) in the terminal to clean up the diffs

This is something I can't live without, the collapsing along with the inline Stage/Discard buttons makes it so much easier to keep commits tidy:

image

This screenshot is from GitX — still by far my favorite Git UI. I have tried literally all the extensions in VS Code, but none comes even close. I think this is something the core editor has to provide.

no update on this issue?
any one knows any extension?

this issue is open since 2016

VS Code could really stand to make some huge improvements by looking at Atom's git support -- viewing diffs, walking through changes & staging them, as well as undo/reset ... it really is quite a bummer that these features are lacking.

Yeah. To hide unchanged context is a very common feature for all diff editor and I think the MS developers also need this feature for each commit. I wonder why they abandoned the implementation for such a long time.

VSCode has built-in collapse/expand feature for code editor. A different algorithm would make the deal it seems.

four year..... the function is still missing.

This is, by far, my most wanted feature. It is standard in many other tools, specially when doing source control diffs.

I'd appreciate some comment from the team as to why is not being considered. Is it too hard to implement?

The only reason I'm still using GitHub Desktop is because of this missing functionality. I'm often working on large files of C/C++ with 1000s of lines of code and long scrolls are just killing me.

Please make sure that the "selecting ranges to Stage" feature won't break!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

borekb picture borekb  Â·  3Comments

DovydasNavickas picture DovydasNavickas  Â·  3Comments

villiv picture villiv  Â·  3Comments

v-pavanp picture v-pavanp  Â·  3Comments

biij5698 picture biij5698  Â·  3Comments