Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Compare diff with clipboradNew to Visual Studio Code? Get it now.
Compare diff with clipborad

Compare diff with clipborad

takashi-uchida

|
3 installs
| (0) | Free
Compare clipboard text with selected text in editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Partial Diff Extension

VSCode/Kiro extension to compare clipboard text with selected text in the editor.

Features

  • 📋 Compare clipboard content with selected text
  • 🎨 Syntax highlighting based on file type
  • ⚡ Quick access via Command Palette or Context Menu
  • 🛡️ Comprehensive error handling

Usage

Method 1: Command Palette

  1. Copy text to clipboard
  2. Select text in your editor
  3. Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  4. Search for "クリップボードと選択テキストを比較"
  5. Press Enter

Method 2: Context Menu

  1. Copy text to clipboard
  2. Select text in your editor
  3. Right-click on the selection
  4. Click "クリップボードと選択テキストを比較"

Development

Setup

npm install

Build

npm run compile

Run Extension

Press F5 in VS Code to launch the Extension Development Host.

Testing

Run the automated verification:

node .kiro/specs/partial-diff-extension/verify-implementation.js

For manual testing, see .kiro/specs/partial-diff-extension/test-verification.md

Requirements

  • VS Code 1.80.0 or higher
  • Node.js for development

Implementation Status

✅ All core features implemented ✅ Error handling complete ✅ Command palette integration ✅ Context menu integration ✅ Syntax highlighting support ✅ Temporary file cleanup

Architecture

  • DiffService: Manages temporary files and diff display
  • Command Handler: Validates input and handles errors
  • Extension Entry Point: Registers commands and manages lifecycle

Error Handling

The extension handles the following error cases:

  • No active editor
  • No text selected
  • Empty clipboard
  • File system errors

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft