• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

ocaml-indent

Auto-indent ocaml
  • #ocaml
  • #indent
  • #ocp-indent
atom-ocaml
0.7.1 21,043
8
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by