Skip to content

Instantly share code, notes, and snippets.

@drobakowski
Last active March 3, 2020 12:46
Show Gist options
  • Save drobakowski/8418008 to your computer and use it in GitHub Desktop.
Save drobakowski/8418008 to your computer and use it in GitHub Desktop.
EditorConfig file for Erlang. See http://EditorConfig.org
# EditorConfig file: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# 4 space indentation
[*.{erl,src,hrl}]
indent_style = space
indent_size = 4
@ajm113
Copy link

ajm113 commented Dec 3, 2016

Awesome, thanks for the configuration example!

One little issue I noticed, however.

insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true # <<< Copy paste error?

@gilbertwong96
Copy link

gilbertwong96 commented Sep 3, 2018

Line 9 and Line 12 is duplicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment