Overview Version History Q & A Rating & Review
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
Select text in your editor (optional)
Press Cmd+Shift+Y
(Mac) or Ctrl+Shift+Y
(Windows/Linux)
Enter the key path or press Enter to search selected text
Select from results to navigate to the key location
Right-Click Menu
Select text or place cursor on a word
Right-click → "Search Selected YAML Key"
Find & Replace
Keyboard Shortcut
Select text in your editor (optional)
Press Cmd+Shift+H
(Mac) or Ctrl+Shift+H
(Windows/Linux)
Enter the key path and press Enter
Use the professional interface to review and replace values
Right-Click Menu
Select text or place cursor on a word
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
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:
Open Command Palette (Cmd+Shift+P
/ Ctrl+Shift+P
)
Search for "Configure File Exclusions"
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