Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>OcpIndentNew to Visual Studio Code? Get it now.
OcpIndent

OcpIndent

AllanBlanchard

|
866 installs
| (2) | Free
Provide OCP Indent in VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OCP Indent

Features

Provides OCP indent formatting for OCaml.

  • full file formatting
  • selected text formatting

Note that the behavior of the full file formatting can be configured. If:

  • OcpIndent: Global Format Takes Selection

is activated, if some text is selected, the behavior is the same as "selected text formatting". Basically: the same key binding can be used for both actions.

If ocp-indent is not in the environment, the path to the executable can be configured via the option:

  • OcpIndent: Path

Requirements

  • ocp-indent (opam install ocp-indent)

Build package

  • npm install
  • vsce package
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft