how to open vscode settings 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: reset vscode settings

Press F1
Type user settings
Press enter
Click the "sheet" icon to open the settings.json file:
From there you can delete the file's contents and save to reset your settings.
Restart VSCode and your settings will be reset

Tags:

Misc Example