Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Terminal OutputNew to Visual Studio Code? Get it now.
Copy Terminal Output

Copy Terminal Output

prithvi-prithvi

|
2 installs
| (0) | Free
A smart copy button to copy the latest terminal output to clipboard — works with short commands and long-running servers
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Terminal Output

Smart copy button for VS Code's terminal — copies only the latest command output.

Features

  • One-click copy from the terminal toolbar
  • Keyboard shortcut — Ctrl+Alt+C (Mac: Cmd+Alt+C)
  • Copy Last N Lines — pick exactly how many lines
  • Status bar — shows buffered line count
  • Smart fallback — full terminal copy when shell integration is unavailable
  • Debug logging — check Output → Copy Terminal for troubleshooting

Settings

Setting Default Description
copyTerminal.maxLines 200 Max lines to buffer per terminal (10–5000)

Commands

Command Shortcut Description
Terminal: Copy Output Ctrl+Alt+C Copy latest command output
Terminal: Copy Last N Lines — Choose how many lines to copy
Terminal: Clear Copy Buffer — Reset the buffer for active terminal

Requirements

  • VS Code 1.110.0+
  • Shell integration enabled (default in modern VS Code)

Known Limitations

  • Shell integration must be active for smart copy (falls back to full copy otherwise)
  • Buffer resets when a new command runs in the same terminal
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft