Skip to contentPedro Farbo
Lesson 4 / 1630 min

Setting Up Your Environment

Setting Up Your Environment

Time to prepare your machine for programming!

What You'll Need

  1. A code editor (VS Code)
  2. A browser (Chrome or Firefox)
  3. Organized folders

That's it! Let's configure each one.

Installing VS Code

VS Code (Visual Studio Code) is the most popular code editor in the world. It's free!

Step by step:

  1. Go to code.visualstudio.com
  2. Click Download
  3. Install like any program

First Configuration

Open VS Code and install essential extensions:

  1. Click the Extensions icon (squares on the side)
  2. Search and install:
    • Portuguese Language Pack (if you prefer Portuguese)
    • Live Server (to see changes in real time)
    • Prettier (formats code automatically)

Configuring the Browser

Chrome DevTools

Press F12 (or right-click → Inspect) to open DevTools.

Useful tabs:

  • Elements: see HTML/CSS of the page
  • Console: run JavaScript, see errors
  • Network: see requests

Practice: open any site and press F12 to explore!

Folder Organization

Create an organized structure:

Documents/
└── projects/
    └── learning/
        ├── html-basics/
        ├── css-basics/
        └── javascript-basics/

Tip: Open folder in VS Code

  1. File → Open Folder
  2. Select your folder
  3. Now you have access to all files on the side

Your First File

  1. In VS Code, with the folder open
  2. Right-click → New File
  3. Name: index.html
  4. Type ! and press Tab

VS Code will auto-complete to:

html
<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <title>Document</title></head><body> </body></html>

This is the basic HTML structure!

Testing with Live Server

  1. Right-click on index.html
  2. "Open with Live Server"
  3. Browser opens automatically!
  4. Any changes you make will update in real time

Summary

  • ✅ VS Code installed with extensions
  • ✅ Browser configured for development
  • ✅ Organized folder created
  • ✅ First HTML file working

In the next lesson, we'll create your first real HTML page! 🚀

Enjoyed the content? Your contribution helps keep everything online and free!

PIX:0737160d-e98f-4a65-8392-5dba70e7ff3e