How To Open An Existing Project In Visual Studio Code

The following guide will show how to open an existing project in Visual Studio Code. Before starting, make sure you have a current project in your desired directory. For example, we have an existing project in a “Test” folder on our Desktop for this guide. Keep in mind that opening a project or a folder is the same.

Open an existing project using VS Code

Do the following to open the project through VS Code:

  1. From the sidebar, select the Explorer tab or press Ctrl + Shift + E

    Explorer Tab
    From the sidebar, click on the Explorer tab.
  2. Click on the Open Folder button

    Open Folder
    Click on the Open Folder button.
  3. Select the folder or project you wish to open from your preferred directory. Then, click on the Select Folder button

    Select Folder
    Select the folder from your preferred directory.
  4. You will notice the folder and the files inside it opened in the Explorer pane

    Project Folder
    The project folder will open in the explorer panel of VS Code.

Open an existing project from the Windows Context Menu

Context Menu is the menu that opens when you right-click on a folder on Windows. To open an existing project or folder directly from its folder, follow these steps:

  1. Go to the directory of the project or folder you want to open in VS Code

    Directory
    Select the folder from your preferred directory.
  2. Right-click on the folder you want to open. Select the Open with Code option

    Open with Code
    Right-click on the folder and choose the Open with code option.
  3. VS Code will automatically open the folder in its workspace

    Project Folder
    The project folder will open in the explorer panel of VS Code.

Open an existing project using Command Prompt

To open the project through Command Prompt, follow these steps:

  1. Open Command Prompt
  2. Locate the directory of the project or folder using the “cd” command followed by the directory name.

    CD Command
    Set the directory for the folder you want to open.
  3. Type the following command to open the folder:
    code .

    Code Command
    Type and run the following command: code .
  4. VS Code will open the folder in the new window.

    Project Folder
    The project folder will open in the explorer panel of VS Code.

Was this article helpful?

Leave a Comment