VS Code Git and Productivity/Select for compare / compare with selected

Compare arbitrary files in the explorer.

Section: Compare and Merge Conflicts

Select for compare / compare with selected

text
text
Explorer context menu: Select for Compare, then Compare with Selected

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 Compare and Merge Conflicts
Use merge conflict actions
Accept current, incoming, or both changes inline.
OpenIn sheettextsame section
Open Timeline view
See file history and source control timeline.
OpenIn sheettextsame section
Open file diff from Source Control
Review changed files directly in diff view.
OpenIn sheettext1 tag match
Clone repository
Clone via built-in Git command.
Split editor
Work with multiple files side by side.
Keep editor open
Pin an editor to stop it from being replaced by preview opens.