RipGrep into Xcode
Fast code search with Cmd+Click to open results in Xcode or VS Code. Powered by ripgrep for blazing-fast searches across your codebase.
Features
- Cmd+Click Navigation - Click on any word in your code to search for it instantly
- Terminal Link Integration - Click on words in terminal output to search
- Smart Result Handling - Single match opens directly, multiple matches show picker
- Xcode Integration - Optionally open search results in Xcode instead of VS Code
- Command Palette Access - Execute searches via commands with advanced options
- Fast Search - Powered by ripgrep for blazing-fast code search
- Clean Result Display - Shows filename and line number with code preview
Requirements
- ripgrep (
rg ) must be installed and available in PATH
- VS Code 1.80.0 or higher
How to Use
Cmd+Click Navigation
Simply Cmd+Click (or Ctrl+Click on Windows/Linux) on any word in your code. The extension will:
- If 1 match is found → Opens the file directly at that line
- If multiple matches → Shows a quick-pick menu to choose which one to open
- If no matches → Shows an info message
Terminal Links
Click on any word (3+ characters) in terminal output to search for it across your codebase.
Command Palette
Terminal Ripgrep: Search - Search for a pattern with default settings
Terminal Ripgrep: Search with Options - Search with advanced options (case sensitivity, file type filtering)
Configuration
Opening Results in Xcode (macOS only)
By default, search results open in VS Code. If you prefer to work in Xcode:
- Open VS Code Settings (
Cmd+, )
- Search for "Terminal Ripgrep: Open In"
- Change from "vscode" to "xcode"
Or add to your settings.json :
{
"terminalRipgrep.openIn": "xcode"
}
Now when you Cmd+Click on search results, they'll open in Xcode at the exact line where the match was found!
All Available Settings
terminalRipgrep.executable - Path to ripgrep executable (default: "rg" )
terminalRipgrep.additionalArgs - Additional arguments to pass to ripgrep (default: ["--color=always", "-n", "--column"] )
terminalRipgrep.searchPath - Default search path (default: workspace root)
terminalRipgrep.openIn - Choose which editor to open files in: "vscode" or "xcode" (default: "vscode" )
Development
npm install
npm run compile
License
MIT
| |