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

Yanker

cadconsultants

|
2 installs
| (0) | Free
Yank selection into new window
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Yanker

Yanker is a Visual Studio Code extension that helps you quickly yank (extract) selected text into a new editor window, making it easier to work with code snippets and text fragments.

Features

  • Quick Text Extraction: Select any text in your editor and yank it into a new window beside your current editor
  • Smart Statistics: Displays line count, word count, and character count of yanked text in the status bar
  • Language Preservation: Automatically preserves the language mode of the original file in the new window
  • Lightweight: Minimal resource usage with fast activation

Usage

  1. Select any text in your editor
  2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  3. Run the command Yank Selection to New Window
  4. The selected text opens in a new editor pane with statistics displayed in the status bar (format: Yanked: lines:words:characters)

Example: Yanking 3 lines with 26 words and 450 characters shows: Yanked: 3:26:450

Commands

This extension contributes the following commands:

  • Yank Selection to New Window - Copies selected text to a new editor window and displays statistics

Extension Settings

This extension contributes the following settings:

  • yanker.autoFormatDocument: Automatically format the document after yanking to a new window (default: false)

You can configure this setting in your VS Code settings:

  • Open Settings (Ctrl+, or Cmd+,)
  • Search for "Yanker" or "yanker.autoFormatDocument"
  • Check/uncheck the "Auto Format Document" option

Or add to your settings.json:

{
  "yanker.autoFormatDocument": true
}

Requirements

No special requirements or dependencies needed. Works with VS Code version 1.108.1 and above.

Known Issues

No known issues at this time. Please report any issues on the GitHub repository.

Release Notes

0.0.1

Initial release of Yanker

  • Yank selected text to new editor window
  • Display statistics (lines, words, characters) in status bar
  • Preserve language mode from source file

Contributing

Found a bug or have a feature request? Please open an issue on GitHub.

License

This extension is licensed under the MIT License.

Enjoy!

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