有没有什么方法可以通过设置同步在关闭时自动更新 VSCode 设置?

Is there any way to automatically update VSCode settings on close via Settings Sync?

我想在关闭 VSCode 时通过设置同步更新 github 上的设置,有什么办法吗?

Settings Sync extension 确实有一个选项可以在设置更改时上传设置:

Toggle Auto-Upload on change

Auto-upload is disabled by default. When the settings are changed and saved this feature will automatically start the upload process and save the settings online.

Select Command "Sync : Advanced Options > Toggle Auto-Upload on Settings Change" command to Turn ON / OFF the auto-upload.

或设置

"sync.autoUpload": true,

false 是默认值。

--------更新------------

另请参阅 https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_43.md#settings-sync 作为 v1.43 中的预览功能。或者在这里查看我更完整的答案:

You can now sign in with your GitHub account to synchronize your VS Code preferences.