Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto Swap DiffNew to Visual Studio Code? Get it now.
Auto Swap Diff

Auto Swap Diff

Foxy BOA

|
3 installs
| (1) | Free
Automatically swaps diff editor sides so the modified (working-tree) file is on the left — like Eclipse
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto Swap Diff

VS Code extension that automatically swaps diff editor sides so the modified (working-tree) file appears on the left — like Eclipse does by default.

Why?

VS Code shows diffs with the original (HEAD) on the left and modified file on the right. If you're used to Eclipse-style diffs where the working copy is on the left, this extension fixes that automatically.

How it works

When you open a git diff from the Source Control panel, the extension:

  1. Detects the new diff tab (git: left, file: right)
  2. Re-opens it with swapped sides (file: left, git: right)
  3. Closes the original tab

This happens instantly and transparently.

Settings

Setting Default Description
autoSwapdiff.enabled true Enable/disable automatic diff swapping

Commands

  • Auto Swap Diff: Toggle — quickly enable/disable the extension via Command Palette

Installation

From VSIX

code --install-extension auto-swapdiff-1.1.0.vsix

Build from source

npm install
npx vsce package
code --install-extension auto-swapdiff-*.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft