Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git Diff SearchNew to Visual Studio Code? Get it now.
Git Diff Search

Git Diff Search

zwdai

|
1 install
| (0) | Free
Search all uncommitted changes (Staged, Unstaged, Untracked) in the Git panel
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Diff Search

A VS Code extension for searching and navigating through uncommitted Git changes.

Screenshot

Features

🔍 Global Search in Git Changes

Search across all uncommitted modifications in your repository:

  • Staged changes (Index) – Changes added to the staging area
  • Unstaged changes (Working Tree) – Modified files not yet staged
  • Untracked files – New files not added to Git

📂 File-Specific Search

Click the search icon in the Diff editor title bar to search within a specific file's changes. The search will be scoped to:

  • Index changes when viewing a staged file diff
  • Working Tree changes when viewing an unstaged file diff

🎛️ Search Options

  • Match Case (Aa) – Case-sensitive search
  • Whole Word (ab) – Match whole words only
  • Regex (.*) – Regular expression support

Usage

Method 1: Source Control Panel

  1. Open the Source Control panel (Git icon in the sidebar)
  2. Find the Git Diff Search view
  3. Type your search query and press Enter
  4. Click on any result to open the native Diff view

Method 2: From a Diff View

  1. Open any file's diff (staged or unstaged)
  2. Click the 🔍 search icon in the editor title bar
  3. The search will be scoped to that specific file

Search Results

Each result displays:

  • File path and line number
  • Change type label: STAGED, UNSTAGED, or UNTRACKED
  • Line content with visual indicator:
    • 🟢 Green border = Added line
    • 🔴 Red border = Removed line

Click any result to jump directly to that line in the native VS Code Diff view.

Navigation

Use the ↑ and ↓ buttons to navigate through search results sequentially.

Requirements

  • VS Code 1.74.0 or higher
  • Git installed and available in PATH

License

MIT

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