Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>re-searchNew to Visual Studio Code? Get it now.
re-search

re-search

profelis

|
177 installs
| (0) | Free
Transform search query
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

re-search plugin

Preprocess search query by given patterns.

Pattern examples

"re-search.patterns": {
	// replace any `*` with regexp `.*` and activate regexp search
	"*": {
		"replacement": ".*",
		"isRegex": true, // activate regexp search
		"isCaseSensitive": false,
		"matchWholeWord": false,
	},
	// replace xml tag with regexp to match any xml tag with same name
	"/<\/{0,1}([A-Za-z][A-Za-z0-9]*)\/{0,1}>/": { // match with regexp
		"replacement": "<\/{0,1}$1\/{0,1}>",
		"isRegex": true,
		"stopMatching": true,
		"filesToInclude": "some/path",
	}
}

Usage

  • Execute command re-search: Search
  • insert search text
  • processed text will be pasted in Search panel

or

  • Select any text in editor and execute command re-search: Search selected (ctrl-shift-alt-F)
  • processed text will be pasted in Search panel

preview

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