Kill vscode from the command line

Viewed 29218

I tried to kill the vscode from command line:

$ killall vscode
No matching processes belonging to you were found

$ killall "Visual Studio Code"
No matching processes belonging to you were found

It does not work?

How could I terminate vscode from command line?

2 Answers

Use

killall code

It will terminate all running instances of Visual Studio Code.

If nothing works try this

$ sudo kill -9 $(pgrep Electron)

Use with caution ⚠️ this will also terminate other apps which are run by Electron

Related