- VSCode gives no option to persist the undo stack between sessions. If you want undo intact, never close VSCode.
- Linux/Mac
code --list-extensions > vscode-extensions.list
- Windows (Powershell)
code --list-extensions | Out-File -FilePath vscode-extensions.list
- Linux/Mac
cat vscode-extensions.list | xargs -L 1 code --install-extension
- Windows (Powershell)
Get-Content vscode-extensions.list | ForEach-Object { code --install-extension $_ }
Notes
- For VSCodium use the
codium
command instead - Enable the
code
andcodium
shell commands via the command palette: P -> Shell -> Add Cod{e|ium} to Path - To manually install an extension:
- marketplace.visualstudiocode.com/* > Resources > Download Extension
code --install-extension downloaded-extension.vsix
Linux/MAC:
rm -rf ~/.vscode/extensions
Windows:
rd -r %USERPROFILE%\.vscode\extensions
See also: https://stackoverflow.com/questions/36746857/completely-uninstall-vs-code-extensions
VSCode
- Windows %APPDATA%\Code\User\settings.json
- macOS $HOME/Library/Application\ Support/Code/User/settings.json
- Linux $HOME/.config/Code/User/settings.json
VSCodium
- Windows %APPDATA%\VSCodium\User\settings.json
- macOS $HOME/Library/Application\ Support/VSCodium/User/settings.json
- Linux $HOME/.config/VSCodium/User/settings.json
Open the command palette (either with F1 or Ctrl+Shift+P)
Type open settings
Select Open Settings (JSON)
Replace with settings.json from this repo
- Windows: %UserProfile%\AppData\Roaming\Code\User\keybindings.json
- macOS: ~/Library/Application\ Support/Code/User/keybindings.json
- Linux: $HOME/.config/Code/User/keybindings.json
- Windows %APPDATA%\VSCodium\User\keybindings.json
- macOS $HOME/Library/Application\ Support/VSCodium/User/keybindings.json
- Linux $HOME/.config/VSCodium/User/keybindings.json
Open the command palette (either with F1 or Ctrl+Shift+P)
Type: "Open Keyboard Shortcuts" (JSON) command.
Select Open Keyboard Shortcuts (JSON)
Replace with keybindings.json from this repo
- Linux ~/.xmodmap
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
- Windows ililim/dual-key-remap
MIT