DEV Community

Cover image for How to open VSCode with Terminal
Oscar Ortiz
Oscar Ortiz

Posted on

How to open VSCode with Terminal

Table Of Contents

  1. Download or Install VSCode
  2. VSCode Command Plugin
  3. Open VSCode with terminal

Here is a quick setup guide to get your VSCode opening up with your terminal.

Download or Install VSCode

VSCode on our machine. If you have not downloaded VSCode to your machine yet please do so here

VSCode Download Page

VSCode Command Plugin

Open up VSCode. Once open, we can access our VSCode command palette by hitting command + shift + p. Inside our search bar we will type in shell. We will install our shell command.

VSCode Demo

Awesome! We have now added our terminal command that will allow us to open our VSCode from our terminal. For example let's say you cloned a big project from github but only want to access a certain folder from the project and not the whole app?

Here's an example of a big project.

Demo

If we wanted to we can open only one of these folders if there was only one thing we wanted to work on and not have such a heavy load of files on our VSCode

Open VSCode with Terminal

Let's open up our terminal and access the root of our project we are working on.

Let's go ahead and cd into the folder we want to work on only within our project. After we access the folder that stores the files we want to work on we can open our vscode with our new command.

code . <-- we include the period at the end of our command.

Terminal Demo

BOOM! Now you know how to access individual folders or even files straight from the terminal.

Top comments (0)