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.txt
code --list-extensions > extensions/default.txt
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.txt
Restore 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.txt
Restore extensions: (Optional) Remove all installed extensions:
cat extensions/default_backup.txt | xargs -L 1 code --uninstall-extension
Install extensions:
cat extensions/default.txt | xargs -L 1 code --install-extension
copy %APPDATA%\Code\User\settings.json config\default.jsonp
cp ~/.config/Code/User/settings.json config/default.jsonp
Before 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.json
Load settings:
copy config\default.jsonp %APPDATA%\Code\User\settings.json
Before 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.json
Load settings:
cp config/default.jsonp ~/.config/Code/User/settings.json
copy %APPDATA%\Code\User\keybindings.json keybindings\default.jsonc
cp ~/.config/Code/User/keybindings.json keybindings/default.jsonc
Before 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.json
Load keybindings:
copy keybindings\default.jsonc %APPDATA%\Code\User\keybindings.json
Before 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.json
Load keybindings:
cp keybindings/default.jsonp ~/.config/Code/User/keybindings.json