Search code examples
visual-studio-codevscode-extensions

Automating Installation of VS Code Plugins


I'm using VS Code with Ubuntu. I have a shell script to automate the installation of my development tools. I can install VS Code but I'm having trouble automating the installation of VS Code plugins e.g. the Python plugin

Is there an easy way to do this with a shell script?


Solution

  • After installing VSCode, it provides a command line interface. So you can simply install an extension like this:

    code --install-extension ms-python.python
    

    If you have multiple extensions to install, you could create your own extension and bundle them in the "extensionPack" section (package.json), link.