Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>My PortsNew to Visual Studio Code? Get it now.
My Ports

My Ports

Apaya

|
1 install
| (0) | Free
View all listening ports, see which process owns them, kill with one click, and open in browser.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Port Manager

View all listening ports on your machine, see which process owns them, kill with one click, and open in browser.

Features

Port Overview

See all listening TCP ports in an Explorer sidebar panel. Each port shows its number, the owning process name, PID, and address.

One-Click Kill

Kill any process directly from the sidebar. Confirmation dialog prevents accidental termination.

Open in Browser

Click the globe icon to instantly open http://localhost:PORT in your default browser. Perfect for quickly accessing dev servers.

Copy Port / URL

Copy the port number or full http://localhost:PORT URL to your clipboard.

Saved Ports

Define expected ports per project. Saved ports show a status indicator (running/stopped) and persist in .vscode/ports.json so your team can share them.

Notifications

Get notified when a saved port starts or stops running. Never miss when your dev server crashes.

Status Bar

A status bar item shows the count of active ports. Click to refresh.

Commands

Command Description
Port Manager: Refresh Ports Manually refresh the port list
Port Manager: Kill Process Kill process on a port
Port Manager: Open in Browser Open localhost:PORT in browser
Port Manager: Copy Port Number Copy port to clipboard
Port Manager: Copy URL Copy full URL to clipboard
Port Manager: Add Saved Port Save a port for this project
Port Manager: Remove Saved Port Remove a saved port

Settings

Setting Default Description
portManager.showSystemPorts false Show system ports (below 1024)
portManager.excludeProcesses [] Process names to exclude

Cross-Platform

Works on macOS, Linux, and Windows:

  • macOS: Uses lsof
  • Linux: Uses ss (fallback: netstat)
  • Windows: Uses netstat + tasklist

Privacy

This extension runs entirely on your machine. No data is sent anywhere.

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