Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vscode, git diff view: how show only changes

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

like image 980
Giuseppe Avatar asked Jan 05 '21 09:01

Giuseppe


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
like image 85
Philippe Avatar answered Oct 21 '22 14:10

Philippe