If you get code command not found error but vscode is installed:
> code zsh: command not found: code
it means, that,
code command is not in you system PATH. You need to add it.
To do that, follow these steps:
Launch Visual Studio Code.
Open the Command Palette by pressing
Type "shell command" in the Command Palette search bar.
You should see an option that says "Shell Command: Install 'code' command in PATH." Select it to add the
codecommand to your system PATH.
After completing these steps, you should be able to open Visual Studio Code directly from the terminal using the