When I type a period after an end
, this is the indenting I get:
a() ->
receive
{abc, Val} ->
io:format("Val: ~w~n", [Val])
end.
On the other hand, if I type a comma after an end
, the end
slides to the left:
a() ->
receive
{abc, Val} ->
io:format("Val: ~w~n", [Val])
end,
I wish a period would make the end
slide to the left as well.
And, in the first example if I select the whole function clause and choose Erlang > Indent > Indent Region
from the menu bar, I get:
a() ->
receive
{abc, Val} ->
io:format("Val: ~w~n", [Val])
end.
Why am I unable to get that indenting automatically? In fact, I think that after I type end
, the end
should automatically move to the left and line up with the receive
--before I type any punctuation. It shouldn't matter what punctuation follows.