VS Code Git and Productivity/Open file diff from Source Control

Review changed files directly in diff view.

Section: Source Control Basics

Open file diff from Source Control

text
text
Open Source Control view and click a changed file

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Source Control Basics
Clone repository
Clone via built-in Git command.
OpenIn sheettextsame section
Stage selected ranges
Stage only part of a file from the diff editor.
OpenIn sheettextsame section
Sync changes
Pull and push using the status bar sync action.
OpenIn sheettextsame section
Select for compare / compare with selected
Compare arbitrary files in the explorer.
OpenIn sheettext1 tag match
Use merge conflict actions
Accept current, incoming, or both changes inline.
OpenIn sheettext1 tag match
Open Timeline view
See file history and source control timeline.
OpenIn sheettext1 tag match