How to open Visual Studio Code from Terminal - (MAC)

I am 17 years old and a young passionate and self-taught frontend web developer and have an intention to become a successful developer. I usually write about JavaScript and Web Development and share some tips in the articles.
I recently discovered a quick way to launch Visual Studio Code from the terminal.
To do so, launch Terminal on your Mac and enter the following code:
$ code .
To open a specific directory
$ code PATH
This will open VS Code π
If you are encountering some error using this command in the Mac terminal, then here is the solution:
Error: Shell Command: Install 'code' command in PATH
Inside Visual Studio Code, pressed cmd + shift + p and search for path and choose the following command:

This will fix the error and you can open VS Code from terminal.
Thanks for reading
Follow me on Twitter
Thanks for reading!




