nrbray
nrbray

Reputation: 183

How do I turn off vscode Settings Sync (request to log in to a Microsoft account)

Strangely there is lots of information on how to turn it on and log in but for me I have spent quite some time searching and can find no way to turn it off!

The information under: How do I delete my data? does not help me as there is no checkbox I can see.

If you want to remove all your data from our servers, just turn off sync via the Manage gear menu and select the checkbox to clear all cloud data. If you choose to re-enable sync, it will be as if you're signing in for the first time.

Whenever I use vscode there is a handy blue number that indicates when a new update is available. Now that number is always 1 and is 2 when there is an update.

The reason for the blue number 1 now is that it wants me to sign in to microsoft. It would be great if I could stop vscode asking for a sign in to Microsoft.

Sorry if I have missed something obvious.

Thank you in advance.

Upvotes: 15

Views: 17142

Answers (7)

Akash Pai
Akash Pai

Reputation: 11

This is for windows. For Mac use Command key in place of ctrl

    1. Ctrl + Shift + P
    2. Type -> sync
    3. Settings sync -> Turn off

Upvotes: 0

Chunhua Liao
Chunhua Liao

Reputation: 11

The key is first you need to sign in an account first. Then you can turn off setting sync.

I was stuck when I was trying to switch to a new account. I log off my old account with microsoft. Then VS code does not have the option for me to select a new account with github.

Upvotes: 0

AustinCodes
AustinCodes

Reputation: 71

Easiest way that I've found to turn off settings sync in VSCode is to use CTRL + Shift + P (Windows) or CMD + SHIFT + P (Mac) to open the settings palette.

Once opened up, search "sync" and there is a section called "Settings Sync: Turn Off" (if it's on).

Click that, and it will confirm that you want to turn it on or off. This will also stop the notification about syncing that comes up.

Upvotes: 6

John Spiteri
John Spiteri

Reputation: 594

For the MacOS, if you "turn off" and "delete user data" in Github the authentication data persists when you turn on sync again.

The authentication data is kept in the MacOS keychain, in the "System Keychains" under the name "vscodevscode.github-authentication".

For some reason, I was not allowed to delete this entry as an administrator. To break the connection with VSCode:

- you have to "Get Info" for the entry
- then under the "Access Control" tab 
- in the "Always allow access by these applications" section at the bottom, click "Visual Studio Code" and click the "-" icon at the bottom

Now you can sign in with another Github account!

BONUS: If you want to share VSCode settings with a team, create a generic company email "[email protected]" and Github account, and use that account for sharing common settings.

Upvotes: 2

Andrey Pershin
Andrey Pershin

Reputation: 1

Ctrl + Shift + P -> Sync: Reset Extention Settings

Upvotes: -1

Airton J. Colombini
Airton J. Colombini

Reputation: 609

  1. Click on the bottom left gear icon, then click 'Settings Sync is On'

enter image description here

  1. On the top list open, click 'Settings Sync: turn Off'

enter image description here

Upvotes: 21

Mark
Mark

Reputation: 181339

From https://github.com/microsoft/vscode/issues/94927:

It was only by searching the github issues that I learned to use cmd-shift-p and type "Preferences Sync" to find the disable command.

I am not able to test this since I turned on Settings Sync and so the badge notification went away for that reason.

Upvotes: 6

Related Questions