Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>YAML Key SearchNew to Visual Studio Code? Get it now.
YAML Key Search

YAML Key Search

Gargi Chaurasia

|
1 install
| (0) | Free
Search and replace YAML keys using dot notation across all YAML files in your workspace. Professional UI with bulk operations, file exclusions, and smart navigation.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

YAML Key Search & Replace

A VS Code extension for searching and replacing YAML keys across your workspace using dot notation.

Features

  • Search YAML keys using dot notation (e.g., database.connection.timeout)
  • Find and replace values across multiple YAML files
  • Professional diff-style interface for reviewing changes
  • Exact with intelligent navigation
  • Bulk operations with selective replacement options

Usage

Search Only

Keyboard Shortcut

  1. Select text in your editor (optional)
  2. Press Cmd+Shift+Y (Mac) or Ctrl+Shift+Y (Windows/Linux)
  3. Enter the key path or press Enter to search selected text
  4. Select from results to navigate to the key location

Right-Click Menu

  1. Select text or place cursor on a word
  2. Right-click → "Search Selected YAML Key"

Find & Replace

Keyboard Shortcut

  1. Select text in your editor (optional)
  2. Press Cmd+Shift+H (Mac) or Ctrl+Shift+H (Windows/Linux)
  3. Enter the key path and press Enter
  4. Use the professional interface to review and replace values

Right-Click Menu

  1. Select text or place cursor on a word
  2. Right-click → "Find and Replace Selected YAML Key"

Replace Interface

The replace modal provides:

  • Search results table with file paths, line numbers, and current values
  • Checkboxes for selective replacement
  • Preview buttons to view each match in the editor
  • Git diff-style review for individual changes
  • Bulk actions: Replace Selected, Replace All, Review Each

Key Path Format

Use dot notation for nested YAML keys:

database:
  connection:
    host: 'localhost'
    port: 5432
    timeout: 30
  pool:
    max-connections: 10

Search paths:

  • database.connection.host
  • database.connection.port
  • database.connection.timeout
  • database.pool.max-connections

Commands

Command Shortcut Description
Search YAML Key Cmd+Shift+Y / Ctrl+Shift+Y Search for key paths
Find & Replace Cmd+Shift+H / Ctrl+Shift+H Find and replace key values

Configuration

File Exclusion (Optional)

Configure which files to exclude from searches:

Quick Setup:

  1. Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  2. Search for "Configure File Exclusions"
  3. Adjust settings as needed

Manual Configuration:

{
  "yamlKeySearch.excludePatterns": [
    "**/node_modules/**",
    "**/test/**",
    "**/build/**",
    "**/*test*.yml"
  ],
  "yamlKeySearch.includePatterns": [
    "**/*.yml",
    "**/*.yaml"
  ]
}

Supported Files

  • .yml files
  • .yaml files
  • Multi-document YAML files (with --- separators)

Installation

Install from the VS Code Extensions marketplace or load the .vsix file:

code --install-extension yaml-key-search-extension.vsix

License

MIT

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