Skip to content

Instantly share code, notes, and snippets.

@megatux
Forked from JamesMGreene/.editorconfig
Created May 11, 2022 12:18
Show Gist options
  • Save megatux/c0325044522d3dd46109121cf0cee8a5 to your computer and use it in GitHub Desktop.
Save megatux/c0325044522d3dd46109121cf0cee8a5 to your computer and use it in GitHub Desktop.
Example EditorConfig file
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
[*.txt]
indent_style = tab
indent_size = 4
[*.{diff,md}]
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment