Lesson 1.3: Tools Setup β Browser, VS Code, Live Server Extension
πΉ Introduction
Before starting web development, you need the right tools. These tools make writing, testing, and debugging code faster and easier. In this lesson, we will set up a browser, a code editor, and a live server extension.
πΉ Step 1: Browser
A browser is required to view and test websites.
-
Recommended: Google Chrome (most widely used and developer-friendly).
-
Alternatives: Mozilla Firefox, Microsoft Edge, Safari.
Why Chrome?
-
Built-in Developer Tools (Inspect Element, Console, Network Tab).
-
Supports modern web standards.
-
Easy debugging of HTML, CSS, and JavaScript.
πΉ Step 2: Code Editor
A code editor is where you write your HTML, CSS, and JavaScript code.
-
Recommended: Visual Studio Code (VS Code) β free, lightweight, and powerful.
How to Install?
-
Visit code.visualstudio.com.
-
Download and install for your operating system (Windows/Mac/Linux).
-
Open VS Code and create a new project folder.
Basic Folder Structure:
πΉ Step 3: Extensions for VS Code
VS Code supports extensions that improve productivity. The most important one is:
Live Server Extension
-
Function: Automatically refreshes your browser whenever you save changes in your code.
-
Installation:
-
Open VS Code β Go to Extensions (Ctrl+Shift+X).
-
Search for Live Server by Ritwick Dey.
-
Click Install.
-
-
Usage:
-
Right-click on your
index.htmlfile β Select Open with Live Server. -
The website will open in your browser and auto-reload with every change.
-
Other Useful Extensions:
-
Prettier (for code formatting).
-
Auto Rename Tag (updates closing tags automatically).
πΉ Why These Tools?
-
Browser shows your output.
-
VS Code provides a professional environment to write code.
-
Live Server makes development faster and more efficient.
π Quick Recap
-
Use Google Chrome as your primary browser.
-
Install VS Code as your text editor.
-
Add Live Server Extension for auto-refresh.
With these tools, you are now ready to start building your first web pages.
