Skip to content

Instantly share code, notes, and snippets.

@MaxAtoms
Last active March 23, 2023 15:11
Show Gist options
  • Save MaxAtoms/b30163855bc6995588a5af9e88b28e51 to your computer and use it in GitHub Desktop.
Save MaxAtoms/b30163855bc6995588a5af9e88b28e51 to your computer and use it in GitHub Desktop.
Visual Studio Code/Code-OSS settings and extensions backup
{
"window.titleBarStyle": "custom",
"workbench.colorTheme": "Night Owl",
"git.autofetch": true,
"terminal.integrated.fontFamily": "'Fira Code'",
"editor.minimap.enabled": false,
"docker.groupImagesBy": "None",
"editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontLigatures": true,
"window.title": "${dirty}${activeEditorMedium}${separator}${rootName}${separator}${appName}",
"workbench.editor.labelFormat": "medium"
}
ban.spellright
DavidAnson.vscode-markdownlint
EditorConfig.EditorConfig
HookyQR.beautify
jbenden.c-cpp-flylint
ms-azuretools.vscode-docker
ms-python.python
ms-vscode.cpptools
sdras.night-owl
vsciot-vscode.vscode-arduino

Backup

Get a list of all installed extensions:

code --list-extensions > vs-code-extensions.txt

Backup a copy of ~/.config/Code - OSS/User/settings.json as well.

Restore

Copy the settings.json back to ~/.config/Code - OSS/User

Install the extensions:

ccat vs-code-extensions.txt | xargs -L 1 -n 1 code --install-extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment