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
- Open the Ports Manager view in the Activity Bar
- View all active ports with their process information
- Right-click on any port to kill it
- 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
- Clone or download this repository
- Run
npm install to install dependencies
- Run
npm run compile to build the extension
- Press
F5 to open a new VS Code window with the extension loaded
- 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
- 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:
- Create a publisher account at marketplace.visualstudio.com
- Update
publisher field in package.json
- Generate a Personal Access Token from Azure DevOps
- Run
npm install -g @vscode/vsce
- Run
vsce login YOUR_PUBLISHER_ID
- Run
vsce publish
License
MIT
| |