User settings and snippets are stored in the APPDATA folder. Point these locations to a suitable location that is monitored by a cloud sync service.
cd %APPDATA%\code\user
mklink settings.json c:\users\<user>\onedrive\...\settings.json
mklink /D snippets c:\users\<user>\onedrive\...\snippets
The global config file for Git is in the user folder. This is also a good place to put a global .gitignore file.
cd %HOMEDRIVE%\users\<user>\
mklink .gitconfig C:\users\<user>\OneDrive\...\.gitconfig
mklink .gitignore C:\users\<user>\OneDrive\...\.gitignore
The config files needs to point to the "tail" of the link for the global .gitignore.
[core]
excludesfile = C:\\users\\<user>\\.gitignore