vs code export extension list code example

Example: export vscode settings and extensions

# to export:

# unix:
code --list-extensions | xargs -L 1 echo code --install-extension

# windows using vscod(e/ium) integrated terminal:
code --list-extensions | % { "code --install-extension $_" }

# to import paste the exported list into the terminal (example):
code --install-extension Angular.ng-template
code --install-extension DSKWRK.vscode-generate-getter-setter
code --install-extension EditorConfig.EditorConfig
code --install-extension HookyQR.beautify
# *code command must be installed. Reference https://code.visualstudio.com/docs/editor/command-line

Tags:

Misc Example