I've recently installed Visual Studio Code and I love it! In the past, I've used sublime text 2/3 and at some point I copied code to allow subl .
command to open the current directory with sublime.
Question:
Desired alias/link/command would be code .
Does the command on this video
From version 1.0 use the command Install 'Code' command in path
from the command palette (View | Command Palette
) to make Code available to the command line.
Historical answer:
With VSCode 0.3.0 the startup script should now be configured to be this:
code () {
VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*
}
UPDATE: If this doesnt work for you uninstall VSC and reinstall it; for this will only work with 0.3.0+
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With