Skip to content

Instantly share code, notes, and snippets.

@diegoeis
Created October 26, 2017 23:40
Show Gist options
  • Save diegoeis/b2c91b9756084f0fe56612c4cd468402 to your computer and use it in GitHub Desktop.
Save diegoeis/b2c91b9756084f0fe56612c4cd468402 to your computer and use it in GitHub Desktop.
Abrir VSC via terminal
vsc () {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code" -n
else
[[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}"
open -a "Visual Studio Code" -n --args "$F"
fi
}
@diegoeis
Copy link
Author

Basta digitar vsc no terminal para abrir o Visual Code Studio ou vsc [pasta]|[file] para abrir uma pasta ou um arquivo.

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