vscode output all extensions code example
Example 1: 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
Example 2: vs code installed extensions list command
code --list-extensions