Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

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

I setup a shortcut so I can type [TODO: Code shorthand span ] 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 ` )