HomeAbout MeBlogContact

Exporting VS Code Extensions list in command line extension installable format

By Naveen Bhati
Published in All Other
October 02, 2019
1 min read

Many of us work in a setting where we need to use multiple development machines with either the same or different operating systems and to be productive and effective it’s really important to have a consistent development environment.

Visual studio code along with its extensions provides a powerful development environment. Below are the commands for both Windows and UNIX based operating systems to export VS code extensions in a format that can easily be used to install exported extensions on any command-line terminal to install them on another machine.

Commands to get the list of extensions

  • Unix:

    code --list-extensions | xargs -L 1 echo code --install-extension
    
  • Windows (PowerShell, e. g. using Visual Studio Code’s integrated Terminal):

    code --list-extensions | % { "code --install-extension $_" }
    

Example of output

code --install-extension AlanWalk.markdown-toc
code --install-extension alefragnani.project-manager
code --install-extension Arjun.swagger-viewer
code --install-extension codezombiech.gitignore
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension dbaeumer.vscode-eslint
code --install-extension donjayamanne.git-extension-pack
code --install-extension drKnoxy.eslint-disable-snippets
code --install-extension dsznajder.es7-react-js-snippets
code --install-extension eamodio.gitlens
code --install-extension Equinusocio.vsc-community-material-theme
code --install-extension Equinusocio.vsc-material-theme
code --install-extension equinusocio.vsc-material-theme-icons
code --install-extension HookyQR.beautify
code --install-extension jebbs.plantuml
code --install-extension jerriepelser.copy-markdown-as-html
code --install-extension johnpapa.vscode-peacock
code --install-extension joshpeng.sublime-babel-vscode
code --install-extension karigari.chat
code --install-extension mdickin.markdown-shortcuts
code --install-extension ms-azuretools.vscode-azureappservice
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-dotnettools.csharp
code --install-extension ms-vscode.azure-account
code --install-extension ms-vscode.powershell
code --install-extension ms-vscode.sublime-keybindings
code --install-extension ms-vscode.vs-keybindings

Copy and paste the above output in powershell, mac terminal or VS Code integrated terminal to install extensions on any machine.

Thanks for reading! 🎊 If you found this useful don’t forget to like and share🙏 and if you have any feedback or some tips to share, feel free to comment below.


Tags

#technology
Previous Article
What is Cypress? and Why is it so famous?

Naveen Bhati

Engineer | QA | Cloud Architect

Topics

AI, ML & Data
All Other
AR/VR
Architecture
Cloud
Testing

Related Posts

Feed your Mind with Tech Events available on-demand for FREE - 2019-2020
April 08, 2020
1 min
© 2021, All Rights Reserved.

Quick Links

Work with meAbout MeContactSchedule a chat

Social Media