Code Editor

Code editor for Mac

Write code. See it work.

Code Editor for Mac brings HTML and CSS, a live web preview, local Python, and Markdown into one workspace.

Code Editor for Mac showing index.html and the live Coastal Trails page side by side
HTML and live preview in the same project

Your first HTML preview

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.

Read the step-by-step guide
Video tutorial frame showing the Coastal Hikes page in Web Preview
Getting started video · 0:29

From a web page to a Python script

Keep related files in a project folder. Open a local folder, clone a Git repository, or work with files over SFTP.

Python editor and console showing the Coastal Trails distance report

Run Python locally

Run a Python script on your Mac and read its output in the console.

Learn to run Python
Python paused at a breakpoint with variables visible in the debugger

Debug step by step

Set a breakpoint, step through your script, and inspect variables while execution is paused.

Learn to debug Python
A Field Notes project README open in the Markdown editor

Write in Markdown

Edit a README in the same workspace as your HTML and JavaScript. Open two files side by side when you need both in view.

Edit Markdown files
Compare two files side by side

Compare two files side by side

Keep your stylesheet beside the HTML and move between both without closing your project.

Use the split editor

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