Skip to content

tecfu/vscode-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-config

Beware

  • VSCode gives no option to persist the undo stack between sessions. If you want undo intact, never close VSCode.

microsoft/vscode#43555

Extensions for vscode

Export Extensions

  • Linux/Mac
code --list-extensions > vscode-extensions.list
  • Windows (Powershell)
code --list-extensions | Out-File -FilePath vscode-extensions.list

Import Extensions

  • 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 and codium 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

Delete All Extensions

Linux/MAC:

rm -rf ~/.vscode/extensions

Windows:

rd -r %USERPROFILE%\.vscode\extensions

See also: https://stackoverflow.com/questions/36746857/completely-uninstall-vs-code-extensions

Configuration files for VSCode

settings.json

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

keybindings.json

VSCode

  • Windows: %UserProfile%\AppData\Roaming\Code\User\keybindings.json
  • macOS: ~/Library/Application\ Support/Code/User/keybindings.json
  • Linux: $HOME/.config/Code/User/keybindings.json

VSCodium

  • 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

Optional

Suggested: Remap ESC to CAPS LOCK

  • Linux ~/.xmodmap
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

License

MIT

About

Configuration files for VSCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published