Open Project in Visual Studio Code from the Command Line

Last reviewed by Frank Treacy
with Flutter 1.7.8

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:

screenshot

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.