Welcome back! In our previous lesson, you built a professional folder structure for your personal-portfolio project. You now have a clean, organized "workshop" ready for your code. But a workshop is only useful if you can see what you're building.
This lesson bridges that gap. We will configure Visual Studio Code with the Live Server extension. This powerful tool creates a fast, automated feedback loop between your code and your browser. Instead of manually refreshing the page every time you make a change, Live Server does it for you instantly. This single change will dramatically accelerate your development speed, forming a cornerstone of the efficient workflow we are building.
The Problem: The Manual Refresh Cycle
Before tools like Live Server, the development process was repetitive. A developer would:
- Write or edit some HTML or CSS code.
- Save the file.
- Switch from their code editor to their web browser.
- Manually press the refresh button.
- Evaluate the change.
- Switch back to the editor and repeat.
While this works, it's slow and introduces friction. Every second spent switching and clicking is a second not spent building. Live Server eliminates this friction entirely.

This image illustrates the core benefit of Live Server: the code you write in VS Code on the left is instantly reflected in the browser on the right without manual refreshing.
The GeeksforGeeks article "How to Enable Live Server on Visual Studio Code" gives a concise summary of this benefit.
How to Enable Live Server on Visual Studio Code - GeeksforGeeks
This article provides an excellent introduction to why Live Server is such a vital tool for productivity.
Please read the short introductory section, from the beginning down to the first heading. It perfectly captures the problem Live Server solves.
Installing and Enabling Live Server
Since you are already comfortable in VS Code, installing Live Server will be straightforward. It’s an extension available directly from the VS Code Marketplace.
The GeeksforGeeks article provides a clear, step-by-step visual guide to this process. The video from the "Coding with Estefania" channel also offers a great real-time walkthrough.
How to Enable Live Server on Visual Studio Code - GeeksforGeeks
This resource will guide you through the installation process with helpful screenshots.
Follow the instructions in Steps 1 through 4. This will cover finding the extension by "Ritwick Dey", installing it, and identifying the "Go Live" button.
Live Server Extension for Visual Studio Code | Full Tutorial
If you prefer a video walkthrough, this clip demonstrates the installation in under a minute.
Watch the section from the installation process.
After installation, you should see a new "Go Live" button in the bottom-right status bar of VS Code.

The "Go Live" button in the VS Code status bar is the primary way to start the server.
Putting Live Server into Action
Now, let's test it with the personal-portfolio project you created in the last lesson.
-
Make sure your
personal-portfoliofolder is open in VS Code. -
Open your
index.htmlfile. It should be empty right now. -
Add a simple piece of HTML to it. You can copy and paste this snippet:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Portfolio</title> </head> <body> <h1>Welcome to my website!</h1> </body> </html> -
Save the file (
Ctrl+SorCmd+S).
Now, let's launch the server. You have a few options, as detailed in the official Live Server documentation. The two most common are:
- Clicking the "Go Live" button in the status bar.
- Right-clicking the
index.htmlfile in the Explorer sidebar and choosing "Open with Live Server".
Go ahead and start the server using either method. Your default web browser should open automatically, displaying your <h1> heading. Notice the URL in the address bar—it will be something like http://127.0.0.1:5500/index.html, not a file:/// path. This confirms you are running on a local server.
Now for the magic. Keep the browser window visible, go back to VS Code, and change the text inside the <h1> tag to something else, like "My Awesome Portfolio". As soon as you save the file, the browser will update automatically.
This video provides an excellent visual demonstration of this live-reloading feature.
Live Server Extension for Visual Studio Code | Full Tutorial
This clip shows the live reload feature in action, first by starting the server and then by making a CSS change that appears instantly.
Watch from this segment to see the server start and automatically update the page when a file is saved.
To stop the server, simply click the button in the status bar that now shows the port number (e.g., "Port: 5500").
Pro-Tip: An Integrated Preview for Maximum Efficiency
Switching between VS Code and a separate browser window is efficient, but we can do even better. To maximize your focus and keep everything in one place, you can run the Live Server preview inside a VS Code tab. This creates a seamless split-screen development environment.
This workflow uses a built-in VS Code feature called Simple Browser.
VsCode Tutorial: How to use Live Server and view updates right in VsCode without using a web browser
This tutorial from Dr. Todd Wolfe Technology Training demonstrates exactly how to set up this highly efficient, integrated workflow.
First, watch the initial part from the beginning of the demo to see the standard Live Server workflow that opens a separate browser. Then, pay close attention to the key segment starting at this timestamp. It shows how to copy the Live Server URL and open it inside VS Code using the "Simple Browser" command.
To try this yourself:
- Start Live Server for your
index.htmlfile as you did before. - When the browser opens, copy the URL from the address bar (e.g.,
http://127.0.0.1:5500). You can close the external browser window. - Back in VS Code, open the Command Palette (
Ctrl+Shift+Pon Windows/Linux,Cmd+Shift+Pon Mac). - Type
Simple Browserand select "Simple Browser: Show". - A new tab will open asking for a URL. Paste the Live Server URL you copied and press Enter.
You now have a live preview tab inside VS Code! You can drag this tab to the side to create a split view, allowing you to code on one side and see your changes instantly on the other, all without leaving your editor. This is a workflow that truly embodies the principle of "max efficiency."
Troubleshooting
If the "Go Live" button doesn't appear or the server doesn't start, don't worry. This is a common issue with a few simple fixes. The most frequent causes are:
- You don't have a
.htmlfile open. - You opened a single file instead of a folder/workspace. VS Code should have the
personal-portfoliofolder open.
For a complete list of solutions, the GeeksforGeeks article has an excellent troubleshooting section.
How to Enable Live Server on Visual Studio Code - GeeksforGeeks
This section covers the most common reasons Live Server might not behave as expected and how to fix them.
If you encounter any issues, read the section What to Do If the "Go Live" Button is Not Showing. It offers several quick fixes to try.
Conclusion
In this lesson, you've added a critical tool to your development environment. You've gone from a static folder structure to a dynamic, live development setup. This instant feedback loop is not just a convenience; it's a fundamental requirement for the rapid, iterative workflow we'll use with Claude.
Key Takeaways:
- Live Server creates a local development server that automatically refreshes your browser when you save a file.
- It is installed as an extension from the VS Code Marketplace.
- You can start it by clicking the "Go Live" button or right-clicking an HTML file.
- For maximum efficiency, you can use the Simple Browser command in VS Code to view your live preview inside the editor.
You now have your complete local development environment set up. Your project is structured, and you have an instant way to preview your work. In the next lesson, we'll put it all together. You'll learn how to establish a reliable workflow for taking the HTML and CSS code generated by Claude.ai and bringing it into your VS Code project for immediate verification and testing.