Note: Windows commands are untested and written using Github Copilot.
My vscode settings and extensions.
In near future, I will add backup for another profiles.
Each profile will has unique name. In this README, I will use default as a profile name.
code --list-extensions > extensions\default.txtcode --list-extensions > extensions/default.txtBefore running the command, make sure that you have a backup of your current extensions.
Backup your current extensions:
code --list-extensions > extensions\default_backup.txtRestore extensions: (Optional) Remove all installed extensions:
Get-Content extensions\default_backup.txt | ForEach-Object { code --uninstall-extension $_ }Before running the command, make sure that you have a backup of your current extensions.
Backup your current extensions:
code --list-extensions > extensions/default_backup.txtRestore extensions: (Optional) Remove all installed extensions:
cat extensions/default_backup.txt | xargs -L 1 code --uninstall-extensionInstall extensions:
cat extensions/default.txt | xargs -L 1 code --install-extensioncopy %APPDATA%\Code\User\settings.json config\default.jsonpcp ~/.config/Code/User/settings.json config/default.jsonpBefore running the command, make sure that you have a backup of your current settings.
Backup your current settings:
copy %APPDATA%\Code\User\settings.json %APPDATA%\Code\User\settings_backup.jsonLoad settings:
copy config\default.jsonp %APPDATA%\Code\User\settings.jsonBefore running the command, make sure that you have a backup of your current settings.
Backup your current settings:
cp ~/.config/Code/User/settings.json ~/.config/Code/User/settings_backup.jsonLoad settings:
cp config/default.jsonp ~/.config/Code/User/settings.jsoncopy %APPDATA%\Code\User\keybindings.json keybindings\default.jsonccp ~/.config/Code/User/keybindings.json keybindings/default.jsoncBefore running the command, make sure that you have a backup of your current keybindings.
Backup your current keybindings:
copy %APPDATA%\Code\User\keybindings.json %APPDATA%\Code\User\keybindings_backup.jsonLoad keybindings:
copy keybindings\default.jsonc %APPDATA%\Code\User\keybindings.jsonBefore running the command, make sure that you have a backup of your current keybindings.
Backup your current keybindings:
cp ~/.config/Code/User/keybindings.json ~/.config/Code/User/keybindings_backup.jsonLoad keybindings:
cp keybindings/default.jsonp ~/.config/Code/User/keybindings.json