editors.dev

Language / OCaml Checked against each editor's own docs

The best editors for OCaml

35 of 41 editors in the directory work with OCaml. 26 give you completion and go to definition. Here is which one to pick, and what each one really does with OCaml.

Section 01 · Short answer

Which one to pick

Four picks read off the ranking below, so they never disagree with it: the most complete setup, the best free one, a lightweight editor and one with AI built in.

Section 02 · The ranking

All 35 editors that work with OCaml

Filter the editor list Filter the IDE list

Best first. Setups with completion and go to definition lead, then editors made for OCaml, then how much of refactoring, debugging and tests each one gives, then how the support arrives. Every row is checked against the editor's own docs.

  • Built in The support ships with the editor.
  • Official extension An extension by the editor's maker or the language's own project.
  • Community extension A third-party extension.
  • Highlighting only Colours the code and nothing more.

Showing 35 of 35 · best first

Editors that work with OCaml, best first
Rank Editor OCaml support What it does with OCaml Price More
Full support · completion and go to definition · 26
01 VS Code Editor Official extension OCaml Platform

The OCaml Platform extension, published by OCaml Labs, runs ocaml-lsp-server and ocamlformat, which you install with opam in your project's switch. It adds Dune tasks, a REPL and an experimental earlybird debugger for bytecode builds.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
Microsoft
Free Open source
02 Cursor AI-first editor Official extension OCaml Platform

The OCaml Platform extension is on Open VSX. It runs ocaml-lsp-server, installed with opam, for completion, navigation, rename and ocamlformat formatting, and includes the experimental earlybird debugger for bytecode builds.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
SpaceXSI (formerly Anysphere)
Free tier, paid plans Free plan; paid plans from $8 to $200 a month
03 Devin Desktop AI-first editor Official extension OCaml Platform

The OCaml Platform extension is on Open VSX. It runs ocaml-lsp-server, installed with opam, for completion, navigation, rename and ocamlformat formatting, and includes the experimental earlybird debugger for bytecode builds.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
Cognition
Free tier, paid plans Free plan; Pro $20 and Max $200 a month
04 GNU Emacs Editor Official extension Tuareg + ocaml-eglot

Emacs ships no OCaml mode, but Eglot is preconfigured for ocaml-lsp-server. Install Tuareg from NonGNU ELPA, which also runs ocamldebug, and Tarides' ocaml-eglot from MELPA for Merlin-style commands; the older merlin.el mode still works too.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
GNU Project
Free Open source
05 Kiro AI-first editor Official extension OCaml Platform

The OCaml Platform extension is on Open VSX. It runs ocaml-lsp-server, installed with opam, for completion, navigation, rename and ocamlformat formatting, and includes the experimental earlybird debugger for bytecode builds.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
Amazon Web Services (AWS)
Free tier, paid plans Free plan; paid plans from $20 to $200 a month
06 Google Antigravity AI-first editor Official extension OCaml Platform

The OCaml Platform extension is on Open VSX. It runs ocaml-lsp-server, installed with opam, for completion, navigation, rename and ocamlformat formatting, and includes the experimental earlybird debugger for bytecode builds.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
Google
Free tier, paid plans Free; Google AI Pro is $19.99 a month
07 TRAE AI-first editor Official extension OCaml Platform

The OCaml Platform extension is on Open VSX and the Visual Studio Marketplace. It runs ocaml-lsp-server, installed with opam, for completion, navigation, rename and formatting, and includes the experimental earlybird debugger. TRAE's docs do not say whether its store carries it.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
SPRING (SG) PTE. LTD. (ByteDance)
Free tier, paid plans Free plan; Pro $20 a month, other plans up to $200
08 VSCodium Editor Official extension OCaml Platform

The OCaml Platform extension is on Open VSX. It runs ocaml-lsp-server, installed with opam, for completion, navigation, rename and ocamlformat formatting, and includes the experimental earlybird debugger for bytecode builds.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
VSCodium community
Free Open source
09 Helix Terminal editor Built in ocamllsp

Helix is preconfigured for ocaml-lsp-server on .ml and .mli files; install it with opam in your project's switch, plus ocamlformat for formatting. No debugger configuration ships for OCaml.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
Blaž Hrastnik and Helix contributors
Free Open source
10 Kate Editor Built in LSP Client + ocamllsp

Kate highlights OCaml, and the LSP preset starts ocamllsp; install ocaml-lsp-server yourself with opam. There is no OCaml debugger preset.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
KDE
Free Open source
11 Neovim Terminal editor Official extension ocamllsp (ocaml-lsp-server)

ocaml-lsp-server is maintained under the ocaml organisation and installed with opam; enable the ocamllsp config from nvim-lspconfig. Neovim ships OCaml highlighting, and Tarides' ocaml.nvim plugin adds Merlin-style commands on top.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
Neovim contributors
Free Open source
12 Vim Terminal editor Official extension Merlin

Vim ships OCaml highlighting from the vim-ocaml project. Merlin, from the OCaml project and installed with opam, adds its own Vim plugin with omni-completion, go to definition, occurrences, rename and case destructuring; formatting needs ocamlformat run separately.

Gives
Highlighting · Completion · Go to definition · Refactoring
Runs on
Windows · macOS · Linux
Maker
The Vim project
Free Open source
13 Zed Editor Community extension OCaml (zed-extensions/ocaml)

The OCaml extension, written by a community contributor, runs ocaml-lsp-server through Dune package management, opam or your PATH, and also covers Reason, Dune and Menhir files. Zed's docs describe no OCaml debugger.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
Zed Industries
Free tier, paid plans Free; Pro at $10 a month adds hosted AI models
14 Sublime Text Editor Community extension LSP (manual ocamllsp config)

OCaml highlighting is built in, but there is no helper package, and the LSP docs still describe the abandoned reason-language-server. Install ocaml-lsp-server with opam and add an ocamllsp client entry to the LSP settings.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
Sublime HQ Pty Ltd
Paid $99 one-off license with 3 years of updates
15 Pulsar Editor Community extension language-ocaml-fix + ocaml-merlin

Pulsar ships no OCaml grammar. language-ocaml-fix adds highlighting and ocaml-merlin adds Merlin-based completion, go to declaration and rename, but neither has changed since 2020 and 2018.

Gives
Highlighting · Completion · Go to definition · Refactoring
Runs on
Windows · macOS · Linux
Maker
Pulsar-Edit community
Free Open source
16 Nova Editor Community extension OCaml extension (gubeka)

OCaml is not built into Nova. A small third-party extension adds highlighting and connects to ocamllsp, which you install with opam and put on your PATH; it is at version 1.0 with few installs.

Gives
Highlighting · Completion · Go to definition
Runs on
macOS
Maker
Panic
Paid $99 one-off; renewal optional at $49 a year
17 PhpStorm IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in PhpStorm 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Paid From $109 the first year or $10.90 a month
18 IntelliJ IDEA IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml: point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting. It is in maintenance mode (last release September 2025) and has no debugger; Red Hat's LSP4IJ has no ocaml-lsp-server template.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Free tier, paid plans Ultimate from $199 the first year or $19.90 a month
19 PyCharm IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in PyCharm 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Free tier, paid plans Pro from $109 the first year or $10.90 a month
20 WebStorm IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in WebStorm 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Paid Commercial use from $79 the first year or $7.90 a month
21 Android Studio IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml and is marked compatible with Android Studio Otter (2025.2.1) and later. It indexes your opam switch for completion, go to definition and find usages, runs Dune builds and reformats code; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
Google
Free Open source
22 GoLand IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in GoLand 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Paid From $109 the first year or $10.90 a month
23 CLion IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in CLion 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Paid Commercial use from $109 the first year or $10.90 a month
24 Rider IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in Rider 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Paid Commercial use from $169 the first year or $16.90 a month
25 RustRover IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in RustRover 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Paid Commercial use from $69 a year or $6.90 a month
26 RubyMine IDE Community extension ReasonML (Hervé Giraud)

The community ReasonML plugin also covers OCaml in RubyMine 2025.2 and later. Point it at your opam switch for completion, go to definition and find usages, Dune builds and reformatting; it is in maintenance mode and has no debugger.

Gives
Highlighting · Completion · Go to definition · Formatting
Runs on
Windows · macOS · Linux
Maker
JetBrains
Paid Commercial use from $109 the first year or $10.90 a month
Highlighting only · no completion, no go to definition · 9
27 Notepad++ Editor Highlighting only

Notepad++ highlights OCaml with its built-in Caml lexer. There is no OCaml keyword file or Function List parser, so completion only offers words already in the open document.

Gives
Highlighting
Runs on
Windows
Maker
Don Ho
Free Open source
28 Lapce Editor Highlighting only

Lapce highlights OCaml and OCaml interface files with its Tree-sitter grammar, but the plugin registry has no ocaml-lsp-server plugin.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Dongdong Zhou and Lapce contributors
Free Open source
29 Geany IDE Highlighting only

Geany has a built-in OCaml filetype with highlighting and ocamlc compile and build commands. The LSP Client plugin has no OCaml preset, so ocamllsp has to be added to its settings by hand.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Colomban Wendling and the Geany contributors
Free Open source
30 Micro Terminal editor Highlighting only

Micro ships OCaml highlighting only. The community lsp plugin has no default OCaml server.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Zachary Yedidia and micro contributors
Free Open source
31 Kakoune Terminal editor Highlighting only

Kakoune ships OCaml highlighting only. The separate kakoune-lsp project is set up for ocaml-lsp-server by default.

Gives
Highlighting
Runs on
macOS · Linux
Maker
Maxime Coste (mawww) and Kakoune contributors
Free Open source
32 GNU nano Terminal editor Highlighting only ocaml.nanorc

nano ships ocaml.nanorc among its regular syntax files, so the usual include line for the bundled files covers it. It gives highlighting only.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
GNU Project (maintainer Benno Schulenberg)
Free Open source
33 TextMate Editor Highlighting only OCaml bundle

The OCaml bundle is in TextMate's own bundle list but is not installed by default. It adds highlighting, snippets and run and show-type commands; there is no Merlin or language server integration.

Gives
Highlighting
Runs on
macOS
Maker
MacroMates Ltd.
Free Open source
34 BBEdit Editor Highlighting only OCaml.plist codeless language module

BBEdit ships no OCaml module and Bare Bones' library lists none. A third-party codeless module from 2012 adds coloring; there is no preconfigured ocaml-lsp-server setup.

Gives
Highlighting
Runs on
macOS
Maker
Bare Bones Software, Inc.
Free tier, paid plans $59.99 one-off license
35 Eclipse IDE IDE Highlighting only Extra Syntax Highlighting (TM4E)

OcaIDE, the old OCaml plugin, stopped in 2015 and is no longer listed. The community Extra Syntax Highlighting plugin adds OCaml coloring through TM4E, using the grammar from the OCaml Platform extension; language features would need ocaml-lsp-server wired up by hand.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Eclipse Foundation
Free Open source

6 of 41 editors left out: no OCaml support Compare Cursor vs VS Code

Section 03 · The language

About OCaml

OCaml is a statically typed functional language from the ML family, with type inference, a powerful module system and a native-code compiler. It is used for compilers and program analysis, proof assistants, finance and systems software.

Actively developed First released 1996

Today

OCaml maintains two lines: the 5.x series, now 5.5 (first released on 2026-06-19, at 5.5.2 since 2026-10-23), and the older 4.14 line, which still gets fixes and security patches (4.14.5 came out on 2026-11-06). Minor 5.x releases arrive roughly every six to nine months; the first alpha of OCaml 5.6.0 was tagged on 2026-11-30.

What it is used for

Compilers, static analysis and verification tools, proof assistants, trading systems and infrastructure software; well-known projects include the Rocq (Coq) proof assistant, Frama-C, Meta's Infer, Flow and Hack, MirageOS, the Tezos blockchain and Jane Street's trading systems.

Official site: ocaml.org

Section 04 · Where it came from

History

OCaml grew out of Caml, an ML dialect built at INRIA in France between 1984 and 1987 by Guy Cousineau, Ascánder Suárez and Pierre-Louis Curien. In 1990-91 Xavier Leroy wrote Caml Light, a lighter bytecode implementation with a garbage collector by Damien Doligez, and in 1995 Caml Special Light added a native-code compiler and an ML-style module system.

Objective Caml followed in 1996, adding objects and classes on top of type-theoretic work by Didier Rémy and Jérôme Vouillon. Jacques Garrigue added labelled and optional arguments and polymorphic variants in 2000, and the language was officially renamed OCaml in 2011. Version 4.00 in 2012 brought GADTs, while the opam package manager and Dune build system became the standard tooling over the following decade.

OCaml 5.0, released in December 2022, replaced the runtime with a multicore one that removed the global lock and added effect handlers for shared-memory parallelism and concurrency. Later 5.x releases restored features dropped in the rewrite and kept extending the language, with labelled tuples in 5.4 and module-dependent functions in 5.5. Jane Street, the largest industrial user, also publishes its own experimental branch, OxCaml.

Section 05 · Versions

Milestone versions

Released Version What it brought
9 May 1996 1.00 The first release under the name Objective Caml, adding objects and classes to Caml Special Light.
25 April 2000 3.00 Labelled and optional arguments and polymorphic variants, merged from Jacques Garrigue's OLabl.
July 2012 4.00.0 Generalised algebraic data types (GADTs), extending the type system for typed interpreters and safer data structures.
28 March 2022 4.14.0 The last release before the multicore runtime; its 4.14 line is still maintained.
16 December 2022 5.0.0 A new multicore runtime with parallel domains and effect handlers.
9 October 2025 5.4.0 Labelled tuples, immutable arrays and atomic record fields.
19 June 2026 5.5.0 Module-dependent functions (modular explicits), polymorphic parameters and a relocatable compiler.
23 October 2026 5.5.2 Latest Patch release of the 5.5 series with several security fixes.

5 of 8 shown

Section 06 · Where the facts come from

Sources

Last checked: 30 November 2026 Method

Section 07 · Language index

Neighbouring languages

All 40 languages