How to configure the livebook code formatter?

You can use the “f Format Elixir code” keyboard shortcut.