Code Editor

Your first HTML preview

Follow an edit from the Files panel to the finished page. The video uses a Coastal Trails demo project.

Open the sample project in Code Editor, then follow the same steps shown in the video.

  1. Open the HTML file

    Show the Files panel and select index.html in the project tree.

  2. Launch Web Preview

    Choose Web Preview in the toolbar and press Run. The page opens alongside your code.

  3. 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.

Read the documentation

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.

Try it with your own HTML file

Open a folder, select an HTML file, and run Web Preview alongside the editor.

Download on the App Store