Skip to main content

Command Palette

Search for a command to run...

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

Published
β€’1 min read
How to open Visual Studio Code from Terminal - (MAC)
D

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:

Path add

This will fix the error and you can open VS Code from terminal.

Thanks for reading

Follow me on Twitter

Thanks for reading!

5 views

More from this blog

D

Dhairya Shah

119 posts