Answers for "how to open code on vscode with terminal"

27

open visual studio code from terminal mac

#Add Bash alias in .bash_profile ?
$ alias code="open -a /Applications/Visual\ Studio\ Code.app"

#Open Visual Studio Code by command
$ code .
Posted by: Guest on November-02-2020
-1

adding code . in the terminal

code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
Posted by: Guest on April-20-2020

Code answers related to "how to open code on vscode with terminal"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language