Install the required extensions and launch the automated preview workflow.
Lesson 2.1: Installing Extensions & Verifying Live Server
- Installing 'Save Typing' by Michel Betancourt
- Installing 'Live Server' by Ritwick Dey
- Launching Live Server via Status Bar
Open the Extensions view in VS Code (Ctrl+Shift+X or Cmd+Shift+X). Search for 'Save Typing' and locate the extension published by Michel Betancourt, then install it. This extension automatically flushes keystroke updates to disk.
Next, search for 'Live Server' and install the widely used extension created by Ritwick Dey. Once both extensions are activated, open your project's HTML file. You can launch your local preview either by right-clicking inside the editor and selecting 'Open with Live Server' or by clicking the 'Go Live' icon on the status bar.
Practical work
- Install 'Save Typing' by Michel Betancourt from the Extensions Marketplace.
- Install 'Live Server' by Ritwick Dey.
- Click 'Go Live' in the status bar to launch http://127.0.0.1:5500 in your browser.
Lesson 2.2: Testing Real-Time HTML and CSS Synchronization
- Real-time HTML tag insertion
- Lorem ipsum text generation
- Instant CSS property and color picker updates
With the browser window and VS Code placed side by side, start editing your HTML markup. Adding heading elements like h1 or h2 or generating paragraph text with 'lorem' will immediately mirror in the browser without touching Ctrl+S.
The same real-time feedback applies to linked CSS stylesheets. When you adjust CSS color definitions, modify font styling, or adjust text-shadow properties, the changes render in real time as values are modified.
Practical work
- Create an h1 tag and type text to confirm real-time character updating.
- Open a linked CSS stylesheet, adjust a color property using the color picker, and verify instant styling changes in the browser.