Fixed: Visual Studio Code can't be opened because “Apple cannot check it for malicious software”
If you encounter:
"Visual Studio Code" can't be opened because Apple cannot check it for malicious software.
This software needs to be updated. Contact the developer for more information.
To fix it, remove the quarantine extended attribute that’s set on the app:
Move the app to the Applications folder
Open Terminal.app, then paste and execute the following command:
xattr -d com.apple.quarantine /Applications/Visual\ Studio\ Code.app