1. Install and Setup MS VSCode for HTML Editor
Learning Objectives
By the end of this lesson, you will be able to:
- Download and install VSCode on your computer
- Open VSCode and create a new project folder
- Configure VSCode for working with HTML files
- Understand the basic VSCode interface
What is VSCode?
Visual Studio Code (VSCode) is a free, powerful text editor made by Microsoft. It’s perfect for writing HTML, CSS, JavaScript, and Python code. Many professional programmers use VSCode!
Step 1: Download VSCode
- Go to https://code.visualstudio.com/ in your web browser
- Click the big Download button
- Choose your operating system:
- Windows: Click “Windows”
- Mac: Click “Mac”
- Linux: Click “Linux”
Step 2: Install VSCode
On Windows:
- Find the downloaded file (usually in your Downloads folder) named
VSCodeUserSetup-x64-*.exe - Double-click it to start the installation
- Click “I accept the agreement” checkbox
- Click Next several times
- Click Install
- When done, click Finish
On Mac:
- Find the downloaded
.zipfile and double-click to extract it - Drag the Visual Studio Code app to your Applications folder
- Open Applications and double-click Visual Studio Code to launch it
Step 3: Open VSCode
After installation, double-click the VSCode icon to open it. You should see a Welcome screen.
Step 4: Install HTML Extensions (Optional but Recommended)
Extensions add extra features to VSCode. For HTML coding, these are helpful:
- Click the Extensions icon on the left sidebar (looks like 4 squares)
- Search for “Live Server” and click Install
- This lets you see your HTML changes instantly in the browser!
- Search for “HTML Snippets” and click Install
- This gives you shortcuts for common HTML code
Step 5: Create Your First Project Folder
- Click File → Open Folder
- Click New Folder to create a folder called
MyWebProject - Click Select Folder
Now VSCode is ready to use! You can create and edit HTML files here.
Key Concepts
| Term | What it means |
|---|---|
| VSCode | A text editor for writing code |
| Extension | A tool that adds features to VSCode |
| Project Folder | A folder where you store all your HTML, CSS, and JavaScript files |
| Live Server | A tool that shows your website changes instantly |
🎯 Try It Yourself
- In VSCode, create a new file called
test.html - Type this code: ```html
Hello! My name is ___
```
- Replace
___with your name - Save the file (Ctrl+S or Cmd+S)
- Right-click on the file and choose “Open with Live Server”
- A browser window should open and show your page!
✅ Success! You’ve created your first web page and VSCode is working!
Next Step
Ready to build your first real web page? Go to Lesson 2: Build Your First Web Page