Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>copy-underNew to Visual Studio Code? Get it now.
copy-under

copy-under

Kevin Felichko

|
437 installs
| (0) | Free
Copies selected text to a new file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

copy-under

copy-under will allow you to take any selected text in one editor window and create a new file of the same type with only the selected lines. It is very useful when combined with regular expression searches.

####Copy a single line w/ Shift-Alt-C keystroke

Single Line Keystroke

####Copy a single line w/ Command Palette

Single Line Palette

####Copy multiple lines via search w/ Shift-Alt-C keystroke

Multiple Lines Keystroke

Use at your own risk. Feel free to modify as you wish.

Enjoy!

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