vscode

Compare file differences using the VS Code CLI diff view.

2.3k|207|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/badlogic/pi-skills --skill vscode
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vscode
Source: https://github.com/badlogic/pi-skills/tree/main/vscode
Command: npx skills add https://github.com/badlogic/pi-skills --skill vscode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to view and compare code differences directly inside Visual Studio Code, streamlining code review and change verification.

Core Features & Use Cases

  • View and compare file differences using VS Code's diff view via the code CLI
  • Git diff scenarios: compare HEAD vs previous commit, specific commits, or staged vs working tree
  • Ideal for code reviews, debugging, and PR validation to quickly understand changes

Quick Start

Open two files side-by-side by invoking the VS Code CLI diff: code -d <path/to/file1> <path/to/file2>

Frequently Asked Questions about vscode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view git diffs in VS Code for code review?▼

View git diffs in VS Code by invoking the code CLI diff command to display file differences side-by-side, streamlining code review and change verification workflows directly inside the editor.

What's the best way to compare two files side-by-side in VS Code?▼

The best way to compare two files side-by-side in VS Code is using the code CLI diff command, executed as code -d <path/to/file1> <path/to/file2> to quickly visualize changes.

Does the code CLI support comparing staged files against the working tree?▼

Yes, the code CLI supports comparing staged files against the working tree, alongside other git diff scenarios like comparing HEAD versus previous commits or specific commit ranges.

Can I use VS Code for PR validation and debugging file differences?▼

Yes, you can use VS Code for PR validation and debugging file differences, as it supports common git-diff workflows to help developers quickly understand code changes inside the editor.

Do I need the VS Code CLI to open file diffs inside the editor?▼

Yes, you need the VS Code CLI to open file diffs inside the editor, as the skill relies on the code command-line interface to launch side-by-side diff views for code comparison.