Visual Studio Code App wont run from Applications folder

Solution 1:

I had this issue and I found a workaround, which may work for you...

  1. Unzip Visual Studio Code in the download folder.
  2. Right-click Visual Studio code, in the download folder, and select 'Open'. If you're prompted by Gatekeeper, open the application.
  3. From the 'Code' menu, select Preferences > User Settings.
  4. Once the settings files open, you can immediately close them both.
  5. From the 'Code' menu, select Preferences > Keyboard Shortcuts.
  6. As with #3, you can immediately close the files.
  7. Quit Visual Studio Code
  8. Copy the Visual Studio Code application into your Applications folder.
  9. Open it from Applications.

This worked for me - I have no idea why, perhaps a bug to do with accessing the preference file(s)? Maybe this might work for you?

Solution 2:

Moving the Visual Studio Code.app into the ~/Applications folder instead of /Applications worked for me.