Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>grep2fileNew to Visual Studio Code? Get it now.
grep2file

grep2file

yuna611d

|
3,376 installs
| (1) | Free
grep word and output result to file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

This extension does grep and output result to a file.

Features

  1. You can search word in current workspace.

    • This extension checks whether there is a word for each line.
  2. You'll get a file, which has result of grep.

  3. You can use regular expression for grep.

    1. You can use following regular expression flags

      • i: ignore case

Usage

Usage

Regular Expression

Regular expression format

  • re/{pattern}/{flags}

Examples

  • re/LO/i

  • re/dolor(|e)/

Configuration

grep2file.exclude

You can exclude files which have specified extensions.

grep2file.outputFileName

You can change output file name.

grep2file.outputContentFormat

You can opt following format.

  • txt: default format

  • csv: csv format

  • tsv: tsv format

grep2file.outputTitle

You can opt following options.

  • true: output title which is grep configuration

  • false: hide title which is grep configuration

grep2file.ignoreHiddenFile

You can ignore hidden file from search target

  • true: ignore hidden file from search

  • false: include hidden file in search target

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