Skip to content

Import/Export VSCode Extensions

You can export a list of your VSCode extensions to a text file, then loop that text file to install the extensions. This is how plugins like VSCode's "settings sync" work, but you can do it manually.

This is also useful for Docker containers like openvscode-server, where you can add a list of VSXi extensions to install from [open-vsx.org].

Export VSCode extensions

Linux

Export VSCode extensions to text file
code --list-extensions > vscode-extensions.list

Windows

Export VSCode extensions to text file
code --list-extensions > vscode-extensions.list

Import VSCode extensions

Linux

Import VSCode extensions from text file
cat vscode-extensions.list | xargs -L 1 code --install-extension

Windows

Import VSCode extensions from text file
cat vscode-extensions.list |% { code --install-extension $_ }