# \[ANN\] OCamlFormat 0.17.0

**URL:** https://discuss.ocaml.org/t/ann-ocamlformat-0-17-0/7287
**Category:** Ecosystem
**Tags:** announce, ocamlformat
**Created:** [February 16, 2021, 3:25pm UTC](https://discuss.ocaml.org/t/ann-ocamlformat-0-17-0/7287 "2021-02-16T15:25:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gpetiot](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/gpetiot/32/5184_2.png) [@gpetiot](https://discuss.ocaml.org/u/gpetiot)
#### Post date: [February 16, 2021, 3:25pm UTC](https://discuss.ocaml.org/t/ann-ocamlformat-0-17-0/7287/1 "2021-02-16T15:25:14Z")

</div>

Hi all,

On behalf of the OCamlFormat development team I am pleased to announce the release of [ocamlformat.0.17.0](https://github.com/ocaml-ppx/ocamlformat) 🎉.

OCamlformat is an auto-formatter for OCaml code, writing the parse tree and comments in a consistent style, so that you do not have to worry about formatting it by hand, and to speed up code review by focusing on the important parts.

OCamlFormat is beta software. We expect the program to change considerably before we reach version 1.0.0. In particular, upgrading the `ocamlformat` package will cause your program to get reformatted. Sometimes it is relatively pain-free, but sometimes it will make a diff in almost every file. We are working towards having a tool that pleases most usecases in the OCaml community, please bear with us!

To make sure your project uses the last version of ocamlformat, please set

```auto
version=0.17.0

```

in your `.ocamlformat` file.

Main changes in `ocamlformat.0.17.0` are:

- the `let-open` option, deprecated since 0.16.0, has been removed
- support for OCaml 4.06 and 4.07 has been removed, minimal version requirement bumped to OCaml 4.08
- the `extension-sugar` option, deprecated since 0.14.0, has been removed
- the syntax of infix set/get operators is now preserved (`String.get` and similar calls used to be automatically rewritten to their corresponding infix form `.()`, that was incorrect when using the `-unsafe` compilation flag. Now the concrete syntax of these calls is preserved)
- all sugared extension points are now preserved
- injectivity type annotations (OCaml 4.12 feature) are now supported
- various fixes about comments positions

We encourage you to try ocamlformat, that can be installed from opam directly ( `opam install ocamlformat` ), but please remember that it is still beta software. We have a [FAQ for new users](https://github.com/ocaml-ppx/ocamlformat#faq-for-new-users) that should help you decide if ocamlformat is the right choice for you.

Have a great day!
