Quick tool to test VS Code commands with arguments programmatically
📝 Description
A lightweight VS Code extension that allows you to quickly test any VS Code command with custom arguments. Perfect for developers who want to experiment with VS Code's extensive command API or test extension commands interactively.
🎬 Demo
🚀 Features
🎛️ Interactive Panel: Dedicated webview panel for testing commands
🔍 Command Autocomplete: Browse and filter from all available VS Code commands
⚙️ JSON Arguments: Input arguments in validated JSON format
📊 Execution History: View persistent history of command executions
✅ Rich Results: See formatted results with success/error indicators
⌨️ Keyboard Shortcuts: Use Ctrl+Enter (Cmd+Enter on macOS) to execute
📋 Copy Results: Easily copy execution results to clipboard
🎨 Theme Integration: Automatically adapts to your VS Code theme
🚀 Quick Mode: Classic QuickPick workflow for rapid command testing
📦 Installation
Development Installation
Clone the repository:
git clone https://github.com/dealenx/vscode-command-tester.git
cd vscode-command-tester
Install dependencies:
npm install
Compile the extension:
npm run compile
Test in development mode:
Press F5 in VS Code to launch Extension Development Host
Install for regular use:
npm run package
code --install-extension vscode-command-tester-0.0.1.vsix
🚀 Usage
Command Panel (Recommended)
Open the Command Panel:
Click the Command Tester icon in the Activity Bar (left sidebar), or
Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run "Command Tester: Show Panel"
Type to search and select a command (autocomplete will show suggestions)
Enter arguments in JSON format in the Arguments field
Click "Execute" button or press Ctrl+Enter / Cmd+Enter
View results in the Output section below
Browse execution history and copy results as needed
Features:
Autocomplete: Start typing to see filtered command suggestions
JSON Validation: Real-time validation of argument syntax
Execution History: All executions are preserved in the panel
Quick Execution: Use Ctrl+Enter / Cmd+Enter keyboard shortcut
Copy Results: Click "Copy Result" button on any execution
Clear History: Click "Clear" button to remove all executions