Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Create A Command Line Shortcut To Launch Visual Studio Code On A Mac

I setup a shortcut so I can type `code` on the command line to start VSCode

I did the setup with:

Code

ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" "/usr/local/bin/code"

Note that there is already a command line app on Macs called "code" that: "Creates a scoped value for the specified command and its associated arg arguments."

I didn't realize it was there and putting my shortcut in place doesn't seem to have caused any problems. If you run into issues, change the location of the link to something else (e.g. `/usr/local/bin/vsc`)