Open Project in Visual Studio Code from the Command Line

Last reviewed in August 2019 by Frank Treacy

Need to open a project folder in Visual Studio Code from the command-line? For instance, after a flutter create project.

In a terminal:

code path/to/folder

If code is not available in your $PATH, this is how we install it:


Hit Cmd + Shift + P (or Ctrl + Shift + P) and type “install command” to find the task that will perform the installation.

The best from the Flutter-verse in 3 minutes or less? Join Snacks!

Delivered twice monthly. No link walls. No spam. EVER.