CMDRun - Command Runner for VS Code
Quick launcher for terminal commands, URLs, and external programs from the sidebar.
☕ Like it? Buy me a coffee so I can mass-produce more extensions at 3 AM → ko-fi.com/yaroslavhorokhov
Screenshots
| Command Panel |
Edit Command |
 |
 |
Features
🖥️ Terminal Commands
Run commands in VS Code terminal or external terminals (CMD, PowerShell, Git Bash, Windows Terminal).
{
"name": "Build & Run",
"commands": ["npm install", "npm run build", "npm start"],
"autoClose": true
}
Options:
autoClose - close terminal after execution
terminalProfile - select external terminal (Command Prompt, PowerShell, Git Bash, etc.)
runAsAdmin - run with elevated privileges (Windows)
🌐 URLs
Open URLs in VS Code Simple Browser or external browser.
{
"name": "Dev Server",
"commands": ["npm run dev"],
"urls": [
{ "url": "http://localhost:3000" },
{ "url": "http://localhost:3000/api", "external": true }
]
}
⚙️ External Programs
Launch any application with arguments.
{
"name": "Open in VS",
"programs": [
{
"path": "C:\\Program Files\\Microsoft Visual Studio\\devenv.exe",
"args": "MyProject.sln"
}
]
}
{
"name": "Chrome App",
"programs": [
{
"path": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"args": "--profile-directory=\"Profile 2\" --app=\"https://outlook.office365.com\""
}
]
}
📁 Groups
Organize commands into nested groups.
{
"name": "Start Server",
"group": "Dev/Backend",
"commands": ["dotnet run"]
}
🔐 Environment Variables
Pass environment variables to terminal commands.
{
"name": "Run with Config",
"commands": ["echo $env:API_URL", "npm start"],
"env": {
"API_URL": "https://api.example.com",
"DEBUG": "true"
}
}
🔍 Search & Filter
Filter commands by name, group, command text, URL or program path. Click the search icon in the panel header.
📦 Import / Export
Share command configurations between projects:
- Export - Save current commands to a
.cmdrun.json file
- Import - Load commands from file (merge or replace)
Config Location
.vscode/cmdrun.json in your workspace.
Keyboard & Actions
- Click - Run command
- Right-click - Edit / Delete / Duplicate
- Drag & Drop - Reorder commands
GitHub: github.com/yarhoroh/CMDRun
Made with ⚡ for productivity