Beginner45 minutesSetupTools

Setting Up Your Development Environment

A proper development environment helps you write, test, and debug code efficiently. Let's set up the essential tools you'll need.

Learning Objectives

By the end of this lesson, you'll be able to:

  • Install Chrome browser for testing web pages
  • Download and configure Visual Studio Code for web development
  • Add essential VS Code extensions that enhance productivity
  • Verify your setup is working correctly

Why This Matters:

Your development environment is where you'll spend most of your time as a developer. A proper setup provides syntax highlighting to catch typos, live previews to see changes instantly, and debugging tools to fix errors quickly. This one-time setup will pay dividends for your entire coding journey.

Web Browser

A modern web browser is your primary tool for viewing and testing websites.

Recommended Browser: Google Chrome

  1. Download from chrome.google.com
  2. Install following your system's standard process
  3. Make Chrome your default browser (recommended)
Alternative Browsers
While we use Chrome in these tutorials, you can also use:
  • Firefox
  • Safari (Mac)
  • Microsoft Edge

⏸️ Quick Check: Browser Setup

Before moving on:

  1. Why do we recommend Chrome for web development? (Hint: Developer tools!)
  2. Should you install multiple browsers? Why or why not?
Check Your Answers
  1. Chrome has excellent built-in developer tools for inspecting elements, debugging JavaScript, and monitoring network activity. It also has the largest market share, so you'll be testing with what most users see.
  2. Yes! Good developers test their sites in multiple browsers because each renders pages slightly differently. Install at least 2-3 different browsers for cross-browser testing.

How confident are you with this concept?

😕 Still confused | 🤔 Getting there | 😊 Got it! | 🎉 Could explain it to a friend!

Code Editor

Visual Studio Code (VS Code) is a free, powerful editor for web development.

Guided Practice: Installing and Configuring VS Code

Follow along as we set up VS Code step by step.

Step 1: Download and Install VS Code

  1. Visit code.visualstudio.com
  2. Download the version for your operating system
  3. Install with default settings
💡 Need a hint?
The website automatically detects your operating system and shows the correct download button.
On Windows, run the .exe installer. On Mac, drag the app to your Applications folder. On Linux, follow the package manager instructions.
During installation, you can check "Add to PATH" (Windows) or create a desktop icon if you'd like quick access.

Step 2: Install Essential Extensions

Install these extensions to enhance your coding experience:

  1. Live Server
    • Click the Extensions icon (or press Ctrl+Shift+X)
    • Search for "Live Server"
    • Click Install
  2. HTML CSS Support
    • Search for "HTML CSS Support"
    • Click Install
  3. Auto Rename Tag
    • Search for "Auto Rename Tag"
    • Click Install
💡 Need a hint?
The Extensions icon is on the left sidebar and looks like 4 squares with one separated.
You can also open extensions with Ctrl+Shift+X on Windows/Linux or Cmd+Shift+X on Mac.
Live Server lets you right-click an HTML file and choose "Open with Live Server" to see it in your browser automatically.

Step 3: Test Your Setup

  1. Create a new file (File → New File)
  2. Save it as test.html
  3. Type ! and press Tab (should create HTML template)
  4. Add "Hello World!" in the body
  5. Right-click the file → Open with Live Server
  6. See your page in Chrome!
💡 Need a hint?
If the ! + Tab trick doesn't work, make sure your file is saved with an .html extension first.
Live Server should open your browser automatically at http://localhost:5500 or a similar port.
Any changes you make to the file will automatically refresh in the browser!

You're on track if you can:

  • ☐ Open VS Code and create a new file
  • ☐ See the Extensions panel with installed extensions
  • ☐ Use the ! + Tab shortcut to create HTML structure
  • ☐ Launch Live Server and see your page in the browser

💪 Independent Challenge: Create Your Workspace

Now personalize your development environment!

Your Task:

Set up a dedicated folder for your web development projects and create your first test page.

Requirements:
  • Create a folder called "WebProjects" in a location you'll remember
  • Open this folder in VS Code (File → Open Folder)
  • Create a new HTML file called index.html
  • Write a basic webpage that includes your name and a short bio
  • Use Live Server to view your page
Stretch Goals (Optional):
  • Install a color theme you like (File → Preferences → Color Theme)
  • Explore additional extensions (try "Prettier" for code formatting)
  • Learn 3 keyboard shortcuts that interest you
  • Create a folder structure (css/, js/, images/) for organizing projects

Success Criteria:

CriteriaYou've succeeded if...
OrganizationYou have a dedicated folder for projects that you can easily find and open
FunctionalityYour HTML file opens correctly in Live Server and displays in the browser
ConfidenceYou feel comfortable creating files, saving them, and viewing them in the browser

🏁 Lesson Complete: Your Dev Environment is Ready!

Key Takeaways:

  • Chrome provides excellent developer tools that help you inspect, debug, and test your websites
  • VS Code is free, powerful, and the most popular code editor among web developers
  • Extensions like Live Server dramatically improve your workflow by showing changes instantly
  • A proper workspace setup (organized folders, good tools) makes coding more enjoyable and productive
  • This one-time setup will serve you throughout your entire development journey

Learning Objectives Review:

Look back at what you set out to learn. Can you now:

  • ✅ Install Chrome browser for testing web pages Check!
  • ✅ Download and configure Visual Studio Code Got it!
  • ✅ Add essential VS Code extensions Can explain it!
  • ✅ Verify your setup is working correctly Could teach this!

If you can confidently answer "yes" to most of these, you're ready to move on!

Think & Reflect:

💭 💭 Compare Before & After

  • Think about trying to code in Notepad vs. VS Code with Live Server. What's the biggest difference?
  • How will seeing your changes instantly help you learn faster?

🎯 Looking Ahead:

With your development environment ready, you're all set to start coding! Next, we'll explore Browser Developer Tools—your secret weapon for inspecting, debugging, and understanding websites like a pro!

Recommended Next Steps

Continue Learning

Ready to move forward? Continue with the next tutorial in this series:

Browser Development Tools

Related Topics

Explore these related tutorials to expand your knowledge:

Additional Resources

Deepen your understanding with these helpful resources:

Progress tracking is disabled. Enable it in to track your completed tutorials.