macbook vscode command not found code code example
Example 1: vscode command does not work on mac
If you want to add it permanently:
Add this to your ~/.bash_profile,
or to ~/.zshrc if you are running MacOS Catalina or later.
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
Example 2: command code not found mac
sudo ln -fs "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" /usr/local/bin/