NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

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

May 2022

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

I did the setup with:

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`)

═══ § ═══