Code Editor

User guideCode Editor for Mac

Markdown and split editing

Keep a README beside its source and see how Markdown rendering works.

Preview a standalone README

Open a folder containing README.md and no top-level index.html. Put a heading and a short checklist of tasks in the file, for example:

# Release notes

- Update the heading
- Check the mobile layout

Save the file, keep its tab active and choose Toggle Preview (⇧⌘V) to show its rendered heading and list. The built-in renderer handles common Markdown such as headings, lists, quotes, fenced code blocks, links and images. Relative image paths start in the Markdown file’s folder.

A Markdown source file open in Code Editor for Mac
Edit headings, links and lists directly in the source.

Keep documentation beside the source

  1. Open two files in the same project, such as README.md and app.js. Select the tab you want on the right.
  2. Choose View → Split Editor or press ⌘\. With multiple tabs open, the selected tab moves to a second group. If you started with just one tab, the new group opens empty so you can pick another file.
  3. Click the desired pane before editing. Use Split Editor again to bring all tabs back into one group. Split is available in the regular-width layout.
Two source files open in separate editor panes
Each pane has its own active file.

Why does my README preview show a website?

Web Preview opens an HTML file directly. For other file types it first looks for index.html at the root of the previewed folder. When that page exists, it takes precedence. To preview the README itself, open it in a separate folder without that index, keeping any images it references at their relative paths.