- Q: Why not to use built-in function for sync-ing?
A: No way to version files.
cd 'C://Users/${USERNAME}/Application Data/Code'
git init --initial-branch=main
git remote add origin git@github.com:hinell/vscode.git
git fetch --no-tags --depth 1 origin
git reset --hard origin/main
GNU stow
is required.
cd vscode/
stow .
When creating a new snippet file in User/snippets/
subfolder dont' forget to run
cd ~/.dotfiles/vscode/
stow .
Otherwise it won't be linked to the VS Code system user configs in the ~/.config/Code
You may link User/
folder manually, but this is not advised, cause stow would link subfiles recursively, keeping original User/
folder intact.
Sep 26, 2022 +0300
August 23, 2023