user7111196
user7111196

Reputation:

How to install extension in visual studio code

How to install extensions through cmd.exe/command prompt or command line interface in visual studio code please giv some example for better clearity and understanding and also how do i change the integrated terminal for eg i have cmder i want to change to it i have seen the preference file but i got confused

Upvotes: 3

Views: 16744

Answers (2)

Pxtl
Pxtl

Reputation: 964

From powershell, assuming default install dirs:

& "C:\Program Files\Microsoft VS Code\bin\code" --install-extension [extension publisher].[extension name]

So, for example, to install the Intant Markdown previewer made by David Bankier, we look in VSCOde and see that the fully resolved name is dbankier.vscode-instant-markdown.

So we execute

& "C:\Program Files\Microsoft VS Code\bin\code" --install-extension dbankier.vscode-instant-markdown

Upvotes: 1

Matt
Matt

Reputation: 1186

Maybe this will help you. Visual studio has a built in console in the form of "package manager console". You can use this for installing packages and other command-line things related to Visual Studio. It's in the UI at the bottom, all you need to do is look for it.

Otherwise, Visual Studio also includes a special version of the command prompt as a separate application, which you can use to run operations specific to Visual Studio. This is located in the same portion of the Start Menu in Windows as the rest of the Visual Studio applications.

Other than that, here are the links to the top two google search results for the exact question in your title:

Managing Extensions in Visual Studio Code

Installing Extensions

It seems to me Microsoft has provided some pretty solid documentation here. Please provide more information about what you have tried if these things are not enough.

Upvotes: 4

Related Questions