Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kill vscode from the command line

Tags:

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?

like image 230
AbstProcDo Avatar asked Aug 29 '18 11:08

AbstProcDo


People also ask

How do you kill VS code in terminal?

This action creates another entry in the tab list associated with that terminal. Remove terminal instances by hovering a tab and selecting the Trash Can button, selecting a tab item and pressing Delete, using Terminal: Kill the Active Terminal Instance command, or via the right-click context menu.

How do I kill VS code server?

Switch Remote - SSH into socket mode by enabling Remote. SSH: Remote Server Listen On Socket in your local VS Code User settings. If you've already connected to the SSH Host, select Remote-SSH: Kill VS Code Server on Host... from the Command Palette (F1) so the setting takes effect.

How do I turn off VS code?

From File > Preferences > Settings (macOS: Code > Preferences > Settings), search for experiments , and uncheck the Workbench: Enable Experiments setting. This will prevent VS Code from calling out to the service and opt out of any ongoing experiments.


2 Answers

Use

killall code 

It will terminate all running instances of Visual Studio Code.

like image 79
Maverick Avatar answered Oct 22 '22 08:10

Maverick


If nothing works try this

$ sudo kill -9 $(pgrep Electron) 

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

like image 22
Nishan Avatar answered Oct 22 '22 06:10

Nishan