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.
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:

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!
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?