Vscode, git diff view: how show only changes

Viewed 4779

I'm new to VSCode and can't find online if is possible to have my favorite diff view mode: I want to see only the lines changed - and the closer ones - not the entire file with the highlighting of the changes.

E.g.: in the image I've deleted\added 2 lines: one at 8 and one at 90. I'd like to see only those changes, not the entire file.

Thanks

enter image description here

1 Answers

I think that's not possible because what is provided here is a real text editor where you can edit the content of the file.

But with the toolbar at the top...

vscode diff toolbar

... you could:

  • go to previous/next change (Alt+Shift+f5/Alt+f5)
  • toggle to display inline diff
Related