Answers for "open project in vs code from terminal mac"

26

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
0

open project in vs code from terminal

// Navigate to your project directory in terminal 
// then enter the below command 

open -a 'Visual Studio Code' .

// the above will open the whole project folder 
// if you wan to only open a single file from the project use

open -a 'Visual Studio Code' fileName.html
Posted by: Guest on June-08-2021

Code answers related to "open project in vs code from terminal mac"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language