Skip to main content

Running VS Code From the Command Line in Mac OS X

·1 min

I’m in love with VS Code, I’ll admit it. To make the joy complete, I wanted to fire it up from the command line (iTerm 2 of course).

A quick Google resulted in this SO answer.

The TL;DR version - VS Code has a built in Shell Command to add itself to the path!

Pop open the command palette (Cmd + Shift + p) and start typing shell command, this will bring up some options, like so:

Just select the install option, restart your terminal (or re-source your profile) and away you go!