github.com/ocamllabs/vscode-ocaml-platform

Visual Studio Code extension for OCaml

Open this visualization on its own page →

Contributors

26

Lines of Code

2,853

From

2019-12-09

To

2020-12-30

About ocamllabs/vscode-ocaml-platform

The VSCode OCaml Platform is a Visual Studio Code extension that provides comprehensive development tools and language support for OCaml and ReasonML projects. It acts as an IDE integration layer that brings OCaml language features to the popular code editor, leveraging the OCaml Language Server for most of its functionality.

The extension offers syntax highlighting for multiple OCaml-related file formats including Dune build files, Menhir grammar files, opam package files, and ReasonML syntax. It supports code navigation features like go-to-definition and auto-completion, type information on hover, and source code formatting through ocamlformat. The extension can detect and work with multiple sandbox environments—OPAM switches, Esy sandboxes, Dune Package Management, or custom command-based setups—allowing developers to work within their project-specific development environments. It includes task automation for the Dune build system and provides an experimental debugger based on the Earlybird debugging tool.

The project targets OCaml developers of all levels, from beginners following the getting-started guide to advanced users customizing sandbox configurations. Notable features include automatic Dune Package Management detection, a REPL integration that can use Utop when available, commands for evaluating code selections, type-based search capabilities, and detailed debugging support for troubleshooting language server issues. The extension is actively maintained and available through the VS Code Marketplace and Open VSX registry.

Share this video