It needs to be configured so that the code is in yours PATH
. If you are running on a mac system , follow these steps (for Windows systems, see below):
- Launch VS Code
- Open the command palette (click F1) and enter
shell command
to find Shell Command: Install 'code' command in PATH command
. - Restart terminal

If you are running on Windows, you can also set PATH manually by adding:
C:\Program Files (x86)\Microsoft VS Code\bin
to your PATH environment variable.
- Open command prompt
- setx path "% path%; C:\Program Files (x86)\Microsoft VS Code\bin"