Skip to content

Instantly share code, notes, and snippets.

@thejustinwalsh
Created April 30, 2015 15:38
Show Gist options
  • Save thejustinwalsh/0938798a72007b896f74 to your computer and use it in GitHub Desktop.
Save thejustinwalsh/0938798a72007b896f74 to your computer and use it in GitHub Desktop.
Visual Studio Code from Terminal OSX
#!/bin/bash
open -a /Applications/Visual\ Studio\ Code.app/Contents/MacOS/Atom "$1"
@thejustinwalsh
Copy link
Author

Place this file in your usr/local/bin or somewhere in your path and make it executable with chmod +x

Usage...
code /usr/local/file_to_open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment