EACCES: permission denied, unlink '/usr/local/bin/code
(Mac)
1. Try uninstalling and reinstalling. (command + shift + p) >shell Command: Uninstall 'code' command from Path
2. append the following to your ~/.bash_profile file (~/.zshrc in case you use zsh).
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}