Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable extensions in VScode from command line

Seems like some extension badly affects to run Vscode. When I try to open Vscode there is "Window no longer responding" How to disable Vscode extensions through cmd?

like image 756
Margulan Avatar asked Dec 04 '25 00:12

Margulan


2 Answers

You can disable extensions via command line with the --disable-extensions flag

code --disable-extensions
like image 123
soulshined Avatar answered Dec 06 '25 13:12

soulshined


My installation (Visual Studio Code 1.82.0 on MacOS 13.5.1) gives a way to disable a specific extension from the command line.

$ code --help

...

Usage: code [options][paths...]

...

  --disable-extension <ext-id>    Disable the provided extension. This option is not persisted and is effective only when the command opens a new window.

For example code --disable-extension ms-vscode-remote.remote-ssh disables the ssh extension (tested).

like image 28
Yuxi L Avatar answered Dec 06 '25 15:12

Yuxi L



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!