Resolve code Command Doesn’t Launch Visual Studio Code from Terminal on Mac - VicPhanDevOps/mac GitHub Wiki

• The following resolution is for if the code command doesn’t launch Visual Studio Code from the Terminal.
image

• Press the command key and spacebar, type “visual studio code” and select the “Visual Studio Code” application.
image

• Press the shift, command and P keys to launch the Command Palette, type “shell command” and select “Shell Command: Install ‘code’ command in PATH.”
image

• Select “OK.”
image

• Expand the “Code” menu and select “Quit Visual Studio Code” or press the command and Q keys.
image

• Return to the Terminal, type code and press the return key to launch Visual Studio Code.
image

• Visual Studio Code will launch this time around.
image

⚠️ **GitHub.com Fallback** ⚠️