Skip to content

piyush-bhatt/vscode-port

Repository files navigation

Port Logo

Port helps you check availability of a port, get an available port, or kill running process on a port from Visual Studio Code itself.

Commands

Available port

Check if a port is available or free. If the port is occupied or no port number is provided in input, a random available port is returned based on the Base Port and Highest Port set in the Settings.

Kill process on port

Kill a running process on a port.

Settings

Following settings are available for the extension to get a port within a desirable range,

  • Base Port: Base Port to search an available port from. Defaults to 1024
  • Highest Port: Highest Port to search an available port till. Defaults to 65535

Usage

Here's an example for checking availability of port 4000 and killing the process running on it to make it available.

Check And Kill Port

Acknowledgement

Logo created at LogoMakr.

License

MIT licensed.