Plugin for Visual Studio Code, a text editor for Mac OS X, Windows, and Linux.
Tested in OSX
using antigen
.
If you are using antigen
antigen bundle c-castillo/zsh-plugin-vscode
-
If the
code
command is called without an argument, launch VS Code -
If
code
is passed a directory, cd to it and open it in VS Code -
If
code
is passed a file, open it in VS Code
NOTE: vscode
can be used as an alias in place of code