Skip to content

VS Code extension that compares clipboard contents as the "after" and active file as the "before" opposite of built-in functionality. Designed for clean diffs from LLM edits and patch reviews.

License

Notifications You must be signed in to change notification settings

DavidCatalano/compare-clipboard-with-active-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compare Clipboard with Active File

A minimalistic Visual Studio Code extension that lets you quickly compare clipboard contents as the "After" and the active file as the "Before" — opposite behavior of VS Code’s built-in "Compare Active File with Clipboard."

Perfect for reviewing updates from AI tools like ChatGPT and generating clean, meaningful diffs.


Features

  • Clipboard = After (additions/changes in green)
  • Active file = Before (deletions/original in red)
  • ⚡ Instant command or hotkey-based launch
  • 🎯 Designed for fast code reviews, patch pasting, and AI-assisted workflows

Installation

From a local .vsix package:

code --install-extension ./compare-clipboard-with-active-file-0.1.0.vsix

Tip:
You can build your own .vsix (see Build section) or install manually later when published.


Usage

  1. Copy text you want to compare into your clipboard.
  2. Open the target file in VS Code.
  3. Trigger the command:
    • Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) → search for Compare Clipboard with Active File, or
    • Press the shortcut Cmd+K Shift+C (Mac) or similar on Windows/Linux.

VS Code’s built-in diff view will open with the clipboard vs. file.


Build

To build a .vsix yourself:

npm install
npm run build

Note: You must have vsce installed:

npm install -g @vscode/vsce

Roadmap

  • Publish on VS Code Marketplace

License

Distributed under the MIT License.


Built mostly with 🖤 by our 🤖 overlords.

About

VS Code extension that compares clipboard contents as the "after" and active file as the "before" opposite of built-in functionality. Designed for clean diffs from LLM edits and patch reviews.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published