Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the Visual Studio Code cloud settings from Github?

I completely removed Visual Studio Code from one of my machines because I wanted to reset all the settings. After reinstalling it and turning on the settings sync ( I'm using Github, not Microsoft ) VSC asked me how to sync the local settings with the cloud settings. I could either

  • merge the settings
  • replace my local settings with the cloud settings

Unfortunately I wasn't able to find the option replace cloud settings with local settings. I tried to remove GitHub for VS Code from Authorized OAuth Apps but that didn't help. How can I remove the cloud settings from Github?


2 Answers

When you connect Visual Studio Code to your GitHub account :
Turn on Settings Sync... -> Sign in & Turn on -> Sign in with GitHub
you supposed to see a little pop-up at the middle of your VSCode that ask you how you want sync :
Merge Manually | Replace Local | Merge

If unfortunately you synchronized and replace your local config, you can't remove the cloud settings from Github but you can access to the SYNC ACTIVITY history :
(min version 1.58)
Ctrl + Shift + P -> Settings Sync: Show Synced Data
The SYNC ACTIVITY menu contains all the changes that the synchronization did for each config types. You can tick the sync types after selecting Turn on Settings Sync... :

  • Settings : user interface, font size, preferences...
  • Keyboard Shortcuts
  • User snippets
  • User tasks : automate tasks like building, packaging, testing...
  • Extensions
  • UI State : history of display Languages, activity Bar entries, recently used commands...

In the SYNC ACTIVITY menu each type is organized by a specific synchronization, if you select a config file you will see all the changes from your previous config (left) to the new (right). You just have to find all the configuration files for the specific time you did the synchronization. Select the left tab to save it in place of the current config file in your configuration folders:

User settings location :

  • Windows: %APPDATA%\Code\User
  • macOS: $HOME/Library/Application\ Support/Code/User
  • Linux: $HOME/.config/Code/User

Workspace settings location :

  • Windows : %USERPROFILE%\.vscode
  • macOS : ~/.vscode
  • Linux : ~/.vscode

Files location :

  • Settings : <user-settings>\Code\User\ settings.json

  • Keyboard Shortcuts : <user-settings>\Code\User\ keybindings.json

  • User snippets : <user-settings>\Code\User\snippets\ <language-name>.json

  • User tasks : <user-settings>\Code\User\ tasks.json

  • Extensions : <workspace-settings>\ extensions.json

  • UI State : <user-settings>\Code\User\globalStorage\ state.vscdb
    (vscdb file is a SQLite database, tool like sqlitebrowser is required)

Do it for all the setting files that you need to restore and that should work.
If you have any extra extensions you just need to remove them from your VSCode.

like image 115
Clément Gibert Avatar answered Jun 21 '26 05:06

Clément Gibert


Hi as you mention you are looking for fresh cloud sync with your local settings.

Unfortunately I wasn't able to find the option replace cloud settings with local settings.

For this purpose you have to delete cloud settings first. go to the settings gear icon, click on Setting Sync is On, then select Setting Sync: Turn Off and select the checkbox to wipe out your cloud data. Now you can sync again with preferred local settings.

Note: settings are not saved in github. Settings are saved in Microsoft servers using github account authentication. It is different from your github spaces, repos, settings and etc.

like image 27
Reg Avatar answered Jun 21 '26 07:06

Reg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!