Skip to content

Instantly share code, notes, and snippets.

@sidonaldson
Last active November 23, 2015 17:33
Show Gist options
  • Save sidonaldson/bb96d65a77cbddbdb66d to your computer and use it in GitHub Desktop.
Save sidonaldson/bb96d65a77cbddbdb66d to your computer and use it in GitHub Desktop.
Generic .editorconfig file
# This is the root editor config file
root = true
# Apply rules to all files
[*]
# Use unix line endings
end_of_line = lf
insert_final_newline = true
# 2 space indentation for everything
indent_style = space
indent_size = 2
# Charset
charset = utf-8
# Trim whitespace if the editor supports it
trim_trailing_whitespace = true
insert_final_newline = true
# Code style
quote_type = single
curly_bracket_next_line = false
spaces_around_operators = true
space_after_control_statements = true
space_after_anonymous_functions = false
spaces_in_brackets = false
# Apply fo only markdown files
[*.md]
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment