Get your API key

Lesson 2 of 5

Open a folder and the terminal

Open your project, answer the Workspace Trust question, turn on Auto Save and use the built-in terminal.

7 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will open your project folder in VS Code, answer the Workspace Trust question safely, turn on Auto Save, and run commands in VS Code's built-in terminal.

You need: VS Code and a project folder (an empty one like daily-routine is fine) · Time: 7 minutes

  1. Always open the whole project folder, never a single file. Only then does VS Code show every file in the Explorer, and the terminal and agent start in the right place.

    Two ways:

    • Menu: File > Open Folder… (on Mac: File > Open…), pick the project folder, click Select Folder / Open.
    • Terminal: in a terminal that is already in the project folder (how), type code . (the dot means "this folder").

    Next time it's faster: File > Open Recent lists your last projects.

    Why?

    An agent started in a single file's window, or in your home folder, can't see the project, or sees far too much. One folder per window keeps it focused.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. The Workspace Trust question
  2. Explorer basics and Auto Save
  3. The built-in terminal
  4. Several terminals, and choosing the shell
  5. Recap