DEV Community

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

Posted on

3

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.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay