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

Ports Manager

Sumeet Pardeshi

|
1 install
| (0) | Free
View and kill active ports easily
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ports Manager - VS Code Extension

A VS Code extension to visually view and manage active ports on your system.

Features

  • View Active Ports: See all listening ports in a tree view with process information
  • Kill Ports: Easily kill processes running on specific ports
  • Auto-refresh: Automatically refreshes the port list every 5 seconds
  • Cross-platform: Works on Windows, macOS, and Linux

Usage

  1. Open the Ports Manager view in the Activity Bar
  2. View all active ports with their process information
  3. Right-click on any port to kill it
  4. Use the refresh button to manually update the port list

Commands

  • Ports Manager: Refresh Ports - Manually refresh the port list
  • Ports Manager: Kill Port - Kill the selected port (available via context menu)
  • Ports Manager: Kill All Ports - Kill all active ports

Requirements

  • VS Code 1.74.0 or higher
  • Appropriate system permissions to view and kill processes

Installation

  1. Clone or download this repository
  2. Run npm install to install dependencies
  3. Run npm run compile to build the extension
  4. Press F5 to open a new VS Code window with the extension loaded
  5. Or run npm run package to create a .vsix file for distribution

Development

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Watch for changes
npm run watch

# Package extension
npm run package

Platform Support

  • macOS/Linux: Uses lsof to list ports and kill to terminate processes
  • Windows: Uses netstat to list ports and taskkill to terminate processes

Publishing to VS Code Marketplace

See PUBLISHING.md for detailed instructions on how to publish this extension to the VS Code Marketplace.

Quick steps:

  1. Create a publisher account at marketplace.visualstudio.com
  2. Update publisher field in package.json
  3. Generate a Personal Access Token from Azure DevOps
  4. Run npm install -g @vscode/vsce
  5. Run vsce login YOUR_PUBLISHER_ID
  6. Run vsce publish

License

MIT

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