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

regexman

inu1255

|
287 installs
| (0) | Free
another easy way to run regex
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

regexman README

another easy way to run regex that you predefined

Features

  1. custom regex and keybinding
// demo: join line without space
{
	"command": "regexman.run",
	"key": "cmd+j",
	"when": "editorHasSelection",
	"args": ["\\s*\\n\\s*", ""]
}
  1. run regex in chain
// demo: js convert to ts
{
	"command": "regexman.run",
	"key": "cmd+j",
	"when": "editorHasSelection",
	"args": [
		"(let|var|const) (\\w+) = require\\(('|\")([^'\"]+)\\3\\)", "import * as $2 from '$4'",
		"exports.(\\w+) = function", "export function $1"
	]
}
  1. manage regexs in vscode configure regexman.regexs
  2. pick and run regexs by cmd+k cmd+r
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft