Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Regex Copy or CutNew to Visual Studio Code? Get it now.
Regex Copy or Cut

Regex Copy or Cut

ara225

|
6,034 installs
| (2) | Free
Copy, Delete or Cut Lines Matching Regex
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Regex Copy or Cut README

VScode extension that allows copying, cutting or even deleting all lines matching a regular expression and doing stuff with that automatically.

Commands

  • Delete Lines Matching Regex Pattern (Shortcut key: ctrl+alt+d")
  • Copy Lines Matching Regex Pattern (Shortcut key: ctrl+shift+c)
  • Cut Lines Matching Regex Pattern (Shortcut key: ctrl+shift+x)
  • Copy Lines Matching Regex Pattern and Paste Into New Document (Shortcut key: ctrl+alt+c)
  • Cut Lines Matching Regex Pattern and Paste Into New Document (Shortcut key: ctrl+alt+x)

TODO

  • Allow optionally matching on plain text

Release Notes

1.0.0

Initial version. Basic function, regex only matching.

1.1.0

Added paste into new document functionality

1.2.0

Refactor code, fix bugs, improve error handling

Contributions

Not a native JS speaker, so contributions or thoughts are welcome

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