Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Terminal Copy On SelectNew to Visual Studio Code? Get it now.
Terminal Copy On Select

Terminal Copy On Select

Houtan Rocky

|
124 installs
| (2) | Free
Automatically copy selected text from the VS Code integrated terminal to your clipboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Terminal Copy On Select for VS Code

Select terminal text. Paste anywhere. Keep your flow.

Automatically copy selected text from the VS Code integrated terminal to your clipboard. A small, free, open-source extension for copying build logs, error messages, file paths, and commands on Windows, macOS, and Linux.

Visual Studio Marketplace CI MIT license

Terminal Copy On Select: Select it. Consider it copied.

Install for VS Code · Website · Setup guide · Support

How it works

  1. Install Terminal Copy On Select by HoutanRocky.
  2. Open Terminal → New Terminal in VS Code.
  3. Select some terminal output, then paste it into your editor, an issue, or another app.

The extension enables VS Code's native terminal.integrated.copyOnSelection setting when you have not explicitly configured it. VS Code performs the copying. Existing User, Workspace, and Workspace Folder preferences are preserved, including an explicit false.

Install

Find the extension in the Visual Studio Marketplace, or run:

code --install-extension HoutanRocky.terminal-copy-on-select

Requires VS Code 1.97 or a compatible API version. There is currently no published Open VSX listing. For compatible editors such as VSCodium, build a VSIX from source and use Extensions: Install from VSIX.

Why use it?

  • Copy terminal output automatically without a separate copy action.
  • Use your existing PowerShell, Command Prompt, bash, zsh, fish, or WSL terminal.
  • Keep your keyboard shortcuts and explicit settings.
  • Use a small extension with no runtime library dependencies, telemetry, or clipboard monitoring.
  • Inspect the complete implementation in src/index.ts.

Settings and turning it off

Open VS Code Settings and search for terminal.integrated.copyOnSelection, or add this to your User Settings JSON:

{
  "terminal.integrated.copyOnSelection": true
}

To stop automatic copying, set it to false. The extension respects that explicit choice on future starts. Disabling or uninstalling the extension does not reset the saved setting.

You can enable this built-in setting manually without the extension. The extension is a convenience for discovering and enabling it, and including it in your extension setup.

Command Palette controls

The next release adds these commands under Terminal Copy On Select; they are also available when running this source in an Extension Development Host:

Command Action
Enable Copy on Selection Set the user preference to true.
Disable Copy on Selection Set the user preference to false.
Open Settings Open the exact native setting.
Get Help Open the public support page.

Enable and disable commands change the user preference. If a workspace or remote setting overrides it, the extension explains where to review the effective value.

Troubleshooting

Selections do not copy: Check that terminal.integrated.copyOnSelection is true and review applicable Workspace or Remote overrides. If needed after installation, run Developer: Reload Window.

Vim or tmux captures the mouse: Consult VS Code's selection guidance for the appropriate modifier while dragging.

Editor selections do not copy: This extension affects the integrated terminal. Editor files, the Output panel, and the Debug Console are outside its scope.

Visit the searchable support page for more answers, or report a bug.

Privacy

The extension does not read terminal output or clipboard content, collect analytics, or make network requests. It configures a native VS Code setting. Read the privacy explanation.

Development and contributing

Use Node.js 24 and pnpm 10.27.0:

pnpm install --frozen-lockfile
pnpm typecheck
pnpm lint
pnpm test
pnpm build
pnpm ext:package

For the GitHub Pages website:

pnpm site:check
pnpm site:preview
pnpm site:test

See CONTRIBUTING.md for browser checks and docs/DISCOVERABILITY.md for Pages deployment, search-engine submission, and release setup. Website deployment and Marketplace publication are separate. See CHANGELOG.md for pending extension changes.

License

MIT. Built by Houtan Rocky.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

qewr1324
qewr1324

📖 ❤️ 🎨

This project follows the all-contributors specification. Contributions of any kind welcome!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft