This extension clears the currently focused terminal as well as its scrollback buffer, unlike the built-in Terminal: Clear command which only hides the output. That solves the issue with old commands showing up suddenly while typing.
Features
True terminal clearing: Completely clears the terminal screen and cancels any current input
Cross-platform: Works on Windows (PowerShell, CMD) and macOS/Linux (Unix terminals)
Usage
Method 1: Keyboard Shortcut
To clear the active terminal:
Windows/Linux: Ctrl+Shift+K
MacOS: Cmd+K
Method 2: Command Palette
Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
Type True Clear Terminal
Press Enter
Supported Terminals
✅ Supported:
Windows PowerShell
Windows Command Prompt (CMD)
macOS Terminal (bash, zsh)
Linux Terminal (bash, zsh, etc.)
❌ Not Currently Supported:
Git Bash
Installation
From VS Code Marketplace
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "True Clear Terminal"
Click Install
For Development
Requirements
Node.js: Version 20.18.2 or higher
VS Code: Version 1.102.0 or higher
# Clone the repository
git clone https://github.com/mohammadalshikh/true-clear-terminal-vscode.git
cd true-clear-terminal-vscode
# Install dependencies
npm install
# Build the extension
npm run compile
code .
# Test in VS Code (Press F5 to launch Extension Development Host)
Release Notes
1.0.0
Initial release
Support for Windows (PowerShell, CMD) and Unix systems