A focused VS Code extension for comparing two pieces of text copied from anywhere.
Usage
- Run Paste Compare: Open Native Comparison from the Command Palette.
- Copy the first text and run Paste Compare: Paste Clipboard into Left.
- Copy the second text and run Paste Compare: Paste Clipboard into Right.
- Run Paste Compare: Select Syntax Language when comparing code.
The native VS Code diff opens by default, including syntax highlighting, line alignment, line numbers, and synchronized scrolling. The original two-pane input UI remains available through Paste Compare: Open Paste Workbench.
Files can also be loaded using Paste Compare: Load into Left/Right from the Explorer context menu. Dragging a file into either pane is supported when the VS Code host exposes its URI to webviews.
Development
Press F5 in VS Code to launch an Extension Development Host, or run:
npm install
npm run check
npm run package