Skip to content

Instantly share code, notes, and snippets.

@robellegate
Created December 15, 2024 17:35
Show Gist options
  • Select an option

  • Save robellegate/f2a9b2518e8cecf5e2d98ff83a8e12a0 to your computer and use it in GitHub Desktop.

Select an option

Save robellegate/f2a9b2518e8cecf5e2d98ff83a8e12a0 to your computer and use it in GitHub Desktop.
My frequently re-used .editorconfig file
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{*.yml,*.yaml,*.json}]
indent_size = 2
[{*.markdown,*.md,*.mdown,*.mkd,*.mkdn,*.txt}] # https://superuser.com/questions/249436/file-extension-for-markdown-files/285878#285878
trim_trailing_whitespace = false # https://stackoverflow.com/editing-help#linebreaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment