Configure the VS Code Port Monitor extension to monitor development server ports in real-time with visual status indicators in your status bar.
Extension: dkurokawa.vscode-port-monitor
Add configuration to .vscode/settings.json:
{
"portMonitor.hosts": {
"GroupName": {
"port": "label",
"__CONFIG": { ... }
}
}
}
Select from common scenarios (see examples/ directory):
| Scenario | Template File | Ports |
|---|---|---|
| Vite basic | vite-basic.json |
5173 (dev) |
| Vite with preview | vite-with-preview.json |
5173 (dev), 4173 (preview) |
| Full stack | fullstack.json |
5173, 4173, 3200 |
| Next.js | nextjs.json |
3000 (app), 3001 (api) |
| Microservices | microservices.json |
Multiple groups |
.vscode/settings.json
{
"portMonitor.hosts": {
"Development": {
"5173": "dev",
"__CONFIG": {
"compact": true,
"bgcolor": "blue",
"show_title": true
}
}
},
"portMonitor.statusIcons": {
"inUse": "🟢 ",
"free": "⚪️ "
}
}
Display: Development: [🟢 dev:5173]
{
"portMonitor.hosts": {
"Frontend": {
"3000": "react",
"__CONFIG": { "compact": true, "bgcolor": "blue", "show_title": true }
},
"Backend": {
"3001": "api",
"5432": "postgres",
"__CONFIG": { "compact": true, "bgcolor": "yellow", "show_title": true }
}
}
}
Display: Frontend: [🟢 react:3000] Backend: [🟢 api:3001 | 🟢 postgres:5432]
"5173": "dev" not "5173": "5173"
"🟢 " for better readability"dev": 5173 ❌code --list-extensions | grep port-monitor
.vscode/settings.json syntaxCmd+Shift+P → "Reload Window"Check port-label format is correct:
// ✅ Correct
{"5173": "dev"}
// ❌ Wrong
{"dev": 5173}
For more troubleshooting, see references/troubleshooting.md
references/configuration-options.md - Detailed option referencereferences/troubleshooting.md - Common issues and solutionsreferences/integrations.md - Tool-specific configurationsreferences/advanced-config.md - Pattern matching, custom emojisexamples/ - Ready-to-use JSON configurations.vscode/settings.json
Port Monitor will automatically detect running services and update the status bar in real-time.