vscode

Compare file differences and code versions in VS Code via the 'code' CLI.

3|1|Updated Feb 9, 2015
One-click install
npx skills add https://github.com/drafael/dotfiles --skill vscode-drafael
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vscode
Source: https://github.com/drafael/dotfiles/tree/main/.agents/skills/vscode
Command: npx skills add https://github.com/drafael/dotfiles --skill vscode-drafael

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you quickly understand and visualize changes between different versions of files, making code reviews and debugging much more efficient.

Core Features & Use Cases

  • Side-by-side diffing: Compare two files directly within VS Code.
  • Git integration: Easily compare current files with previous commits or staged versions.
  • Use Case: When reviewing a pull request, you can use this Skill to instantly see the exact lines of code that have been added, removed, or modified compared to the main branch.

Quick Start

Use the vscode skill to compare the file 'main.py' with its version from the previous commit.

Frequently Asked Questions about vscode

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

FAQPage Schema
How do I compare two file versions in VS Code?

To compare file versions in VS Code, this Skill utilizes the 'code' CLI to visually highlight added, removed, or modified lines. It displays side-by-side diffs to help you quickly understand changes between specified file states.

What is the best way to visualize code differences during a pull request review?

Visualizing code differences during a pull request is best handled by highlighting exact modified lines against the main branch. This Skill displays side-by-side diffs in VS Code, making code reviews and debugging much more efficient.

Do I need the code CLI installed to diff files in VS Code?

Yes, you need the 'code' CLI installed and accessible in your system's PATH to diff files. This prerequisite allows the Skill to trigger VS Code's visual diffing capabilities directly from your development environment.

Can I compare a current file with a previous Git commit in VS Code?

Yes, you can compare current files with previous Git commits in VS Code. This Skill integrates with Git to easily fetch and display staged versions or previous commits, visually highlighting the exact code changes.

Why does the code comparison fail to open in my terminal?

Code comparison fails to open if the 'code' CLI is not installed or accessible in your system's PATH. Ensure the VS Code command line tool is properly configured so the Skill can successfully launch the visual diff viewer.