Created
October 26, 2017 23:40
-
-
Save diegoeis/b2c91b9756084f0fe56612c4cd468402 to your computer and use it in GitHub Desktop.
Abrir VSC via terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basta digitar
vsc
no terminal para abrir o Visual Code Studio ouvsc [pasta]|[file]
para abrir uma pasta ou um arquivo.