A repo to store my personal application settings.
Only for global settings.
The scripts found in the vscode
folder will create a backup directory within your VS Code settings directory, move and rename the existing file to settings_YYYYMMDD-HHMMSS.json
and copy the new settings.json
in place of the old settings file (same goes for keybindings.json
).
Extensions need to be installed manually as it stands.
It will report on the size of the backup directory so it doesn't cause problems since it doesn't do anything fancy in regards to checking if the files are the same, or deleting backups older than a given date.
Run cd vscode
then ./copy.ps1
to copy the settings.json
and keybindings.json
to VS Code settings directory.
Run cd vscode
then ./update.ps1
to grab settings.json
and keybindings.json
from VS Code settings directory, and upload it to this GitHub repository.
chmod +x vscode/copy.sh
then run cd vscode && ./copy.sh
to copy the settings.json
and keybindings.json
to VS Code settings directory.
chmod +x vscode/update.sh
then run cd vscode && ./update.sh
to grab settings.json
and keybindings.json
from VS Code settings directory, and upload it to this GitHub repository.
Nope.
I have a Windows machine for gaming, then physically unplug the peripherals from my PC and into my laptop when I want to focus on work.
Whenever I leave the OS I'm using I'll open up PowerShell or my terminal and cd $HOME/Code/settings/vscode && ./update.ps1
/ cd $HOME/Code/settings/vscode && ./update.sh
.
Whenever I enter the new OS I'm using, same again, except call copy.ps1
/ copy.sh
.
Happy days.
- Windows:
%APPDATA%\Code\User\settings.json
- Linux:
$HOME/.config/Code/User/settings.json
- Mac:
$HOME/Library/Application Support/Code/User/settings.json