Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 29, 2022 06:50 pm GMT

How to open VSCode with Command Line

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.


Original Link: https://dev.to/cleveroscar/how-to-open-vscode-with-command-line-5dn9

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To