ocaml-indent

Auto-indent ocaml

atom-ocaml

23,429

8

0.7.1

MIT

GitHub

This package provides the following services:

ocaml-indent

Use ocp-indent to indent your OCaml code in Atom.

Usage

Each line is indented when a newline is inserted. Manual indenting can be done with the following commands.

Command Description Keybinding (Linux)
ocaml-indent:selection Indent lines containing selection or cursor ctrl-alt-i
ocaml-indent:file Indent file ctrl-alt-f

Configuration

The recommended way to configure ocp-indent is with a .ocp-indent file in the project directory. See ocp-indent --help for more information. Command line arguments can be configured too if desired.

Installation

This package requires language-ocaml and ocp-indent. For autocompletion, linting and other features, ocaml-merlin is recommended.

apm install language-ocaml ocaml-merlin
opam install ocp-indent