Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Clear TerminalNew to Visual Studio Code? Get it now.
Clear Terminal

Clear Terminal

markfobert

|
2,127 installs
| (0) | Free
Clear the VS Code terminal from a running program.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Clear your VS Code terminal at runtime with NodeJS.

Instructions:

  1. Install this extension.
  2. Install the npm module:
npm install vscode-clear-terminal
  1. Clear the console in node with:
const { clearTerminal } = require("vscode-clear-terminal");
clearTerminal().then(() => {
    console.log("Terminal cleared");
});

For more information, visit Clear Terminal.

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