2023-07-21
Add VSCode to PATH
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
Cmd+Shift+P
(orCtrl+Shift+P
on Windows/Linux). -
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
code
command to your system PATH.
After completing these steps, you should be able to open Visual Studio Code directly from the terminal using the code
command.