Is there a way to see a diff of the current file in VS Code?

Viewed 354

I'm on a branch, and I'd like to see the diff between the currently-open file and the file's main version. I know I can do GitLens: Compare Working Tree with..., but then I have to find the current file in a (potentially-long) list of files. I want one command that just opens the current file's diff.

1 Answers

Use the GitLens: Open Changes with Branch or Tag... command:

open changes

choose branch

Related