Rifler is a lightning-fast file search extension for VS Code. Search by project/module/directory/file, use regex and file masks, and jump into full-file preview and replace.
Click anywhere in the file preview to edit directly. Changes auto-save with full syntax highlighting and real-time rendering.
Open Rifler in the sidebar, bottom panel, or a separate editor tab. Your search, results, and preview persist when you reopen.
Powered by ripgrep with typical searches ~0.6s on large repos and instant responses on small projects.
Search entire projects, specific modules, directories, or single files. Directory/file scope is constrained to the path you select.
Replace the current match or replace all matches across results. Works with undo and integrates with the file preview editor.
Match case, whole words, regex patterns, and file masks. All the power you need for precise searches.
View entire files with all matches highlighted. Navigate results with arrow keys, open with Enter.
Navigate results and open files without touching the mouse. Select text in the editor and press Cmd+Alt+F (Mac) / Ctrl+Alt+F (Windows/Linux) to search it instantly, and use Cmd+Alt+R / Ctrl+Alt+R for replace mode.
Works with any programming language. TypeScript, JavaScript, Python, Go, Rust, and more.
The search core now uses ripgrep (the same engine as VS Code) for maximum speed, with non-blocking async execution.
| Engine | Query | Avg Time | Matches |
|---|---|---|---|
| Rifler (bundled rg) | "test" | ~635ms | ~112k |
| VS Code rg | "test" | ~667ms | ~112k |
Search for "Rifler" in VS Code Extensions or install from the Marketplace.
Rifler toggles with Cmd+Alt+F (Mac) / Ctrl+Alt+F (Windows/Linux). Choose sidebar/bottom/window via the rifler.panelLocation setting.
Type your query and watch results appear instantly. Use arrow keys to navigate.