How to open VSCode from Terminal in MacOS

D
Feb 19, 2022
Photo by Howard Bouchevereau on Unsplash

The magic of VSCode lies largely in its extensions. A plethora of tools that highlight syntax errors and even provide quick look ups for class methods. An additional benefit of VSCode is the ability to open it from the Macbook Terminal.

Step 1:

Open up your VSCode:

VSCode in MacOS

Step 2:

Open the command palette by pressing ctrl-p:

The command palette pops up at the top of VSCode

Step 3:

Press ‘>’ to open a whole host of settings and type “shell command”:

The shell command shows up in the command palette

Step 4:

Successful installation of shell command

Step 5:

Simply type code into the Terminal and VSCode opens up!

$ code

--

--

D

An aspiring Robotics Researcher. I am currently in my 4th year of undergraduate studies. I am working on optimising the ROS navigation packages. Follow 4 more!