HomeTutorsContact

How to open Visual Studio Code(VSCode) from terminal?

By Gulshan Saini
Published in VSCode
July 24, 2020
1 min read

Follow below steps, if you have installed VSCode recently on MAC and you want to open VSCode from terminal by just typing code command

  1. open VSCode
  2. press cmd+shift+p on MAC to open the Command Palette
  3. type shell install and choose option Shell Command: Install 'code' command in PATH

Shell Command: Install 'code' command in PATH
Shell Command: Install 'code' command in PATH

This will create a symlink as shown in image below

vscode symlink
vscode symlink

Enjoy!!!

Now you can go to any directory on terminal and type code . to open current directory in VSCode. You could also simply use shortcut code to launch VSCode. To open file in current directory with VSCode, type code filename.ext


Tags

#vscode
Previous Article
How to find height and width of base64 image loaded asynchronously?

Gulshan Saini

Fullstack Developer

Subscribe to our newsletter!

We'll send you the best of our blog just once a month. We promise.

Related Posts

How to disable prettier in VSCode for a specific project?

June 19, 2020
1 min
© 2020, All Rights Reserved.

Quick Links

Advertise with usContact Us

Social Media