How to open .md files on Mac (and stop Xcode opening them)
macOS does not ship a rendered Markdown viewer out of the box, so double-clicking a .md file usually opens raw text in TextEdit or launches Xcode if Xcode is installed. Installing a native Markdown reader like Typeset.md (free, open source, macOS 26) and changing the Finder default takes under a minute. Dee makes Typeset.md and wrote this guide.
Why macOS opens .md files in Xcode or TextEdit
Finder assigns every file extension to one registered application. Out of the box, macOS treats .md as plain text (TextEdit). Once you install Xcode, Xcode registers itself as a handler for Markdown files, so double-clicking a README.md or an agent-written PLAN.md launches a multi-gigabyte IDE just to display raw syntax.
Change the default app for all .md files in Finder
You only need to do this once for every .md file on your Mac:
- Select any
.mdfile in Finder. - Press
⌘I(or choose File › Get Info). - Expand the Open with section.
- Pick your Markdown reader — for example Typeset.md, QuickMD or Typora.
- Click Change All… and confirm Continue.
From then on, double-clicking any .md file opens it rendered instead of launching Xcode or raw TextEdit.
Preview .md files in Finder without opening an app (Quick Look)
If you only want to glance at a README or spec inside Finder, Quick Look lets you select a .md file and press Space:
- Typeset.md includes a native Quick Look extension on macOS 26, so pressing
Spacein Finder renders headings, tables, code blocks and task lists immediately. - On macOS 15 or earlier, free open-source options like QLMarkdown, QuickMD or Markdown Preview provide a Quick Look extension.
Opening whole folders of Markdown files
When a repository or docs directory has several interlinked .md files, opening them one by one gets tedious. In Typeset.md, press ⇧⌘O (File › Open Folder…) to open a whole folder, ⌘K to jump to any .md file by name, and click relative Markdown links (./ARCHITECTURE.md) to follow them directly — without importing files into a vault or database.
When to use an editor instead of a reader
If you are writing long-form Markdown all day or managing thousands of linked personal notes, a full editor or workspace such as Obsidian, VS Code or Typora makes more sense. If you mostly read, review, check off tasks and occasionally fix a typo (⌘E), a lightweight native reader keeps files where they already live on disk.
Updated 27 November 2026 · Written by Dee, maker of Typeset.md