Tuesday, November 24, 2015

Installing Extensions in Visual Studio Code


 

Visual Studio Code is a code editor redefined and optimized for building and debugging modern cloud and web applications, Its available on your favorite platforms like Windows, Linux and even on Mac.

One can write .net, nodejs, python and php code using the visual studio code and harness features like debugging, colorization, Intellisense and command palette.

As Microsoft develops more and more features for Visual Studio, Microsoft has also made the Visual Studio Code as an open source project at Github https://github.com/Microsoft/vscode , this is so that developers from all over the world could collaborate and make a better IDE that they want and how they want it.

One way to collaborate and provide new features is to write and provide extensions for VS Code, We’ll see in next Blog Post as to how to create a VS code extension, in this Post we’ll see how to find and install a VS Code Extension.

Install VS code if you haven’t yet installed from here - https://github.com/Microsoft/vscode or here https://code.visualstudio.com

There are 3 ways in which you can install an extension in VS code

 

  1. XCopy your extension –
    1. Go to the relative folder at your machine

      • Windows %USERPROFILE%\Microsoft VS Code\resources\app\extensions
      • Mac $HOME/.vscode/extensions
      • Linux $HOME/.vscode/extensions

    1. Copy the downloaded extension or the extension you wrote yourself to this folder and restart the VS Code.
  1. Install using the .VSIX Package file
    1. If your extension is packaged with .vsix file, you can install it from command prompt using this command
        • code <extensionfolder>\<extensionpackagename>.vsix

This command will unpack the extension package and install it in the \extensions folder for you.

  1. Install from Gallery –
    1. Open the VS Code
    2. Press F1, or go to View -> Command Palette or CTRL + SHIFT + P  and type  “ext install” and hit enter
  

It’ll show you a list of packages to select from, just select and it’ll download and install the extension for you.
Next Post, We’ll see how to create an extension for VS Code….
There was an error in this gadget