Open the sample project in Code Editor, then follow the same steps shown in the video.
Open the HTML file
Show the Files panel and select
index.htmlin the project tree.Launch Web Preview
Choose Web Preview in the toolbar and press Run. The page opens alongside your code.
Edit and save
Change a heading in the HTML and press ⌘S. The preview shows the new heading.
Try it with the included project
The built-in Sample Project has a different heading. Open index.html and change “Hello, Code Editor” to “Hello, Mac”. Press ⌘S and check the new heading in Web Preview.
Video transcript
The Coastal Trails demo project is already open. The Files panel opens on the left and index.html appears in the editor. Run opens Web Preview on the right. The heading changes from Coastal trails to Coastal hikes in the source, and the same change appears in the preview after saving.