ocamlformatversion Documentation on ocaml.org

Auto-formatter for OCaml code

ocamlformat is a code formatter for OCaml. It comes with opinionated default settings but is also fully customizable to suit your coding style.

  • Profiles: ocamlformat offers profiles we predefined formatting configurations. Profiles include default, ocamlformat, janestreet and ocsigen.
  • Configurable: Users can change the formatting profile and configure every option in their .ocamlformat configuration file.
  • Format Comments: ocamlformat can format comments, docstrings, and even code blocks in your comments.
  • RPC: ocamlformat provides an RPC server that can be used by other tools to easily format OCaml Code.
AuthorsJosh Berdine <jjb@fb.com>, Hugo Heuzard <hugo.heuzard@gmail.com>, Etienne Millon <etienne@tarides.com>, Guillaume Petiot <guillaume@tarides.com> and Jules Aguillon <jules@j3s.fr>
LicensesMIT and LGPL-2.1-only WITH OCaml-LGPL-linking-exception
Published
Homepagehttps://github.com/ocaml-ppx/ocamlformat
Issue Trackerhttps://github.com/ocaml-ppx/ocamlformat/issues
MaintainersGuillaume Petiot <guillaume@tarides.com>, Jules Aguillon <jules@j3s.fr> and Emile Trotignon <emile@tarides.com>
Dependencies
Source [http] https://github.com/ocaml-ppx/ocamlformat/releases/download/0.30.0/ocamlformat-0.30.0.tbz
sha256=586a5cc2f4aa5949d2059189eb2dd25d3505fc9224f4b07b994ca819ec640de4
sha512=141612346985dd3de57a2aa3db28d20230d3e612c42ea2ca6e0cb7713de15009bc362843de4511b8a95590d7a2dbab35ba659cb8d44cdf1fda79774be8b9cc67
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocamlformat/ocamlformat.0.30.0/opam
Required by