Skip to content

Instantly share code, notes, and snippets.

@nabeen
Last active February 5, 2018 02:06
Show Gist options
  • Save nabeen/9c5210dd9d18480623a6dcc2a53d34f8 to your computer and use it in GitHub Desktop.
Save nabeen/9c5210dd9d18480623a6dcc2a53d34f8 to your computer and use it in GitHub Desktop.
.editorconfig file
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
indent_size = 2
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Use 4 spaces for the Python files
[*.py]
indent_size = 4
max_line_length = 80
# Use 4 spaces for the PHP files
[*.php]
indent_size = 4
# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore
# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab
# Batch files use tabs for indentation
[*.bat]
indent_style = tab
[*.md]
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment