efmt 0.21.0

Erlang code formatter
Documentation
-module(record).

-record(foo, {
          a,
          b,
          c,
          d = #bar{
                x = 10
               }
         }).

-type foo() :: #foo{
                 a :: integer(),
                 b :: term(),
                 c :: any()
                }.


main() ->
    X0 = #foo{},
    X1 = #foo{a = 1, b = 2},
    X2 = #foo{
           a = 1,
           b = 2,
           c = 3
          },
    X3 = #foo{
           a = 1000000000000000,
           b = 2000000000000000
          },
    X4 = X3#foo{
           a = 1,
           b = 2,
           c = 3
          }.