Zet - How do I kill VS Code Server processes running?

How do I kill VS Code Server processes running?

Use pkill to targer VS Code Server processes owned by your user:

pkill -u ${yourusername} -f vscode
  • -u yourusername - Only targets processes owned by that user(you wouldnโ€™t want to kick anyone else off vscode)
  • -f vscode - Matches against the full command line, catching for example node processes running under /.vscode-sever/..

eg.

pkill -u kevin -f vscode
This is useful when VS Code remote SSH leaves behind orphaned server processes, or when claude code decides to show changes in vscode because it believes itโ€™s still open.

To preview what would be killed first, use pgrep with the same flags

pgrep -u kevin -f vscode

#vscode