CodeMirror 6 used for mobile editing

Editing uses CodeMirror 6 because Monaco still doesn't have a great mobile experience yet.


Editing uses CodeMirror 6 - I was going to use Monaco but that still doesn't have a great mobile experience yet.

Simon Willison explains that the editing component of the product now runs on CodeMirror 6. The decision was driven by the fact that the alternative editor, Monaco, does not yet work well on phones and tablets. By switching to CodeMirror 6, the team can deliver a smoother, more usable code‑editing experience on mobile devices.

What the change means in plain terms

Code editors are the text boxes where you write and modify source code. They need to handle things like syntax highlighting (different colors for keywords, strings, etc.) and responsive cursor movement. Monaco is the editor that powers Visual Studio Code, a popular desktop development environment, but its mobile version still feels clunky—buttons are hard to tap, scrolling can be laggy, and the layout doesn’t adapt well to small screens.

CodeMirror 6 is another open‑source editor that was built with modern web standards and has a reputation for being more flexible on a range of devices, including smartphones and tablets. By adopting it, the product can:

  • Render code quickly on low‑power hardware.
  • Allow finger‑friendly gestures for selecting text and moving the cursor.
  • Keep the interface clean and readable even on a narrow screen.

Because the switch is already in the shipped version, you can try it right now on any supported mobile browser.

Who benefits and why it matters

The primary audience for this improvement is anyone who needs to edit code or plain‑text files while away from a desktop—for example, a developer fixing a bug on the train, a data analyst tweaking a script during a meeting, or a student working on a programming assignment from a tablet. For these users, a responsive editor can turn a frustrating “can’t type properly on my phone” experience into a productive one.

If you are not a developer and never edit code, the change may not affect your daily workflow. The improvement is specific to the act of writing or modifying code; it does not add new features for non‑technical tasks such as reading documents or filling forms.

Current status

The CodeMirror 6 integration is shipping now. It is not a future roadmap item or a prototype; the editor is already live in the product and can be used on iOS and Android browsers. No information about pricing or licensing is provided, so the cost impact (if any) remains unspecified.

Limitations to keep in mind

  • The switch was made because Monaco’s mobile experience is still lacking. If you prefer Monaco’s desktop features, you will not get them on mobile until the Monaco team improves its mobile support.
  • The announcement does not detail any performance benchmarks, so while the experience is described as smoother, the exact speed gains are not quantified.
  • The change is relevant only for code or text editing; it does not affect other parts of the application such as file browsing, version control, or collaboration tools.

In short, the product now uses CodeMirror 6 for its mobile editor, delivering a more usable experience for anyone who needs to write or edit code on a phone or tablet. The update is already live, but its benefits are confined to the editing workflow and do not extend to non‑technical use cases.

developerproducts