Why doesn't VS Code auto update on macOS?

Viewed 11398

I have VS Code on Windows and macOS, on Windows it auto updates but on macOS it doesn't.

How do I get VS Code to auto update on macOS?

4 Answers

VS Code on macOS will not auto update if it's running from a read-only folder.

If you downloaded and are running VS Code from your Downloads folder, which is read-only, it will not auto update.

Solution:

When you've downloaded VS Code, drag the downloaded file to your applications directory and run it from there instead.

enter image description here

It will now auto update

Thanks to @gino mempin in the answer to my previous question for the inspiration How to turn on auto search on VS Code on macOs?

In case anyone encounter this and VS Code was already in your Applications Folder...

  1. Quit VS Code in case it was running (make sure with CMD⌘+Q)
  2. Hold CMD⌘ + drag (so that it moves the app instead of making a shortcut) the VS Code app back to the Downloads folder.
  3. Hold CMD⌘ + drag the VS Code app back to the Applications folder.
  4. Now update should be possible :)

I solved my problem with this command:

xattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app

source: naveendhanaraj.wordpress.com

Moving VSCode to Applications folder and then restarting Mac worked for me.

Related