Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy EOLNew to Visual Studio Code? Get it now.
Copy EOL

Copy EOL

Mark Haney

|
1,007 installs
| (0) | Free
Copies the selected text to the clipboard with a configurable EOL character (LF/CRLF)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

copy-eol

Copies the selected text to the clipboard with a configurable EOL character (LF/CRLF)

Description

Overrides the default copy functionality allowing you to copy text with a custom EOL character. In Windows especially, some less-capable apps only accept CRLF at the end of a line, so if you are working on a document with LF as the EOL character, copying and pasting from it can be troublesome. This extension allows you to override the EOL character used when copying text to the clipboard.

Configuring and Using

In keybindings.json:

  • Bind extension.copyEol to the copy command you wish to use (Ctrl+c on Windows\Linux, Cmd+c on OSX)

In settings.json:

  • "copy.eol": "\r\n" or "copy.eol": "\n" depending on which EOL character you wish to use for copying

Release Notes

If "copy.eol" is not specified in your settings.json file, it will fall back to the default "file.eol" value

See Changelog for version-specific release details

Enjoy!

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