We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Formatting Issues with 'when' Clauses in Elixir
76
clicks
Source: reddit.com
Kev-wqa encountered an issue with the Elixir code formatter where 'when' clauses within a function are being indented further than expected. This causes the 'when' line to be misaligned compared to other lines of code, leading to questions about possible configurations for the formatter. Forum member tzigane suggests modifying `.formatter.exs` to increase the `line_length` option, which might prevent undesired line breaks that lead to odd indentation. Kev-wqa acknowledges the suggestion but notes that the issue persists when manually breaking lines.
Related posts
© HashMerge 2024