Where is the code command located on Mac ?

After adding vscode command to path following:

  • Open the Command Palette (Cmd+Shift+P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.

  • macOS shell commands

The code command is found inside the Visual Studio Code app bundle at the following path:

/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
0
Subscribe to my newsletter

Read articles from Khoa Nguyen Dang directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Khoa Nguyen Dang
Khoa Nguyen Dang