There is a very simple way on how to set this path. When you are getting the above error which says zsh: command not found: code, it clearly denotes that PATH for the vs code command is not set.
From the mac OS greater than Caitlyn zsh is default shell. Z shell also known as zsh is a unix shell that is built on top of the bash. ' it would end up in the following error if the PATH is not set. But when opening from terminal by typing the command 'Code.
In the MAC OS some settings require admin privileges such as 'PATH' and for installing some software requires sudo permissions.Īfter installing VS code from the community site you may open it from the application launcher in MAC system.