OCaml Editor

A fast, modern editor for OCaml—functional programming, type inference, and mathematical precision.

Try OCaml in Zed

Powered by Tree-sitter

Precise Syntax Highlighting

OCaml syntax, pattern matching, and functional constructs are highlighted with mathematical clarity.

Semantic Understanding

Tree-sitter parses your code into a syntax tree, enabling features like code folding, selection expansion, and precise highlighting.

Instant Updates

Syntax highlighting updates in real-time as you type, with no lag or delay even in large files.

Error Recovery

Even with syntax errors, Tree-sitter maintains accurate highlighting for the rest of your code.

Language Server Protocol

Full OCaml LSP Integration

Zed provides intelligent code completion, diagnostics, and refactoring capabilities for OCaml through seamless language server integration.

Popular Extensions

Enhance Zed with popular extensions from our growing ecosystem.

Browse all extensions

Debugging Support

OCaml Debugging

While native OCaml debugging isn't available yet, Zed offers powerful debugging capabilities for other languages with full DAP support.

Learn about Zed's Debugger

Debug Adapter Protocol

Zed supports the Debug Adapter Protocol (DAP) for standardized debugging across multiple languages.

Universal Debugging Features

Breakpoints, variable inspection, call stack navigation, and step-through debugging when supported.

Why Zed

Built for Modern OCaml Development

Experience features that make OCaml development faster and more enjoyable.

Download Zed

Fast

Open large OCaml projects instantly. Navigate & edit with zero lag, even in massive codebases.

Agentic

Generate OCaml code, write tests, and refactor with integrated AI that understands your context.

Collaborative

Pair program, debug together, and share your OCaml projects with your team in real-time.