Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Visual Studio Code extensions from Command line

How to install Visual Studio Code Extensions from Command Prompt while Code Instance is open. I want to install extension from Visual Studio Code gallery.

Following is the extension data i want to install.

enter image description here

My Visual Studio Code Instance is open. What i want to do is to install the following extension from command prompt.

like image 710
Shan Khan Avatar asked Dec 15 '15 10:12

Shan Khan


People also ask

Where does VS Code install extensions?

Extensions are installed in a per user extensions folder. Depending on your platform, the location is in the following folder: Windows %USERPROFILE%\. vscode\extensions.


1 Answers

To make it easier to automate and configure VS Code, it is possible to list, install, and uninstall extensions from the command line. When identifying an extension, provide the full name of the form publisher.extension, for example donjayamanne.python.

code --list-extensions code --install-extension ms-vscode.cpptools code --uninstall-extension ms-vscode.csharp 

Documentation

like image 175
Shan Khan Avatar answered Sep 23 '22 09:09

Shan Khan