Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>large-log grepNew to Visual Studio Code? Get it now.
large-log grep

large-log grep

marucusweeeee

| (0) | Free
Grep huge files efficiently. Save matches to per-file folders and open results in the current IDE.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

large-log grep (VS Code / Cursor)

High-performance grep for very large files inside your IDE. Many text-processing extensions degrade or fail on multi‑hundred‑MB/GB logs due to memory limits and editor rendering. large-log grep avoids those limits by streaming and delegating to battle‑tested CLI tools when available.

Why this extension

  • Traditional extensions and the editor often choke on huge files (OOM, UI freezes, timeouts)
  • Opening the whole file is unnecessary when you only need filtered lines
  • This command works without opening the file in the editor and scales to GB‑level logs

What it does

  • Prompts for a case‑insensitive regex/keyword
  • Greps the target file (active editor, selected in Explorer, or chosen via file picker)
  • Writes matches with line numbers to a per‑file folder next to the source file
  • Automatically opens the result file in the current IDE (VS Code or Cursor)

Output layout:

  • Folder: <filename> (or <filename>.grep if a same‑name file exists)
  • File: <filename>.grep-<sanitized-pattern>-<timestamp>.txt

Key features

  • Works on huge files (hundreds of MB to multi‑GB)
  • Does not require opening the file in the editor to search
  • Uses rg (ripgrep) if available → fastest; falls back to grep; otherwise streams in Node
  • Cross‑platform (macOS, Linux, Windows)
  • Results include line numbers for quick navigation

Usage

  • Command Palette: “Log Tools: Grep Current File to New File”
    • If an editor file is active → search that file
    • If you right‑clicked a file in Explorer → search that file
    • If neither, a file picker will prompt you
  • Editor Context Menu: right‑click file → “Log Tools: Grep Current File to New File”
  • Editor Title Bar Menu: same command available
  • Keybinding: macOS Cmd+Alt+G, Windows/Linux Ctrl+Alt+G

Tips for performance

  • Install ripgrep (rg) for best speed on very large files
  • Use more selective regex where possible (e.g. ERROR.*Timeout)
  • Consider splitting extremely large, single‑line JSON payloads before grepping

Compatibility

  • IDE: VS Code (>= 1.75.0), Cursor
  • OS: macOS, Linux, Windows
  • Tools: optionally rg or grep on PATH (extension gracefully falls back)

Privacy & permissions

  • The extension reads the selected file locally and writes a result file alongside it
  • No data is sent externally by the extension itself

Known limitations

  • Very long lines (megabytes) may still be slower in pure Node fallback mode
  • Pattern syntax differences between rg and grep exist; when in doubt, test locally

Support

  • Publisher: marucusweeeee
  • Name: large-log-grep
  • Issues: set your repository URL in the Marketplace listing (package.json repository / bugs)

License

MIT

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