Skip to content

Instantly share code, notes, and snippets.

@webbertakken
Last active January 18, 2022 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webbertakken/03330968a6f3d5cc0d898a0744cd8380 to your computer and use it in GitHub Desktop.
Save webbertakken/03330968a6f3d5cc0d898a0744cd8380 to your computer and use it in GitHub Desktop.
Editor configuration to synchronise any modern editor with widely accepted standards for any web project.
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 100
tab_width = 2
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false
[*.{yml,yaml}]
max_line_length = off
[COMMIT_EDITMSG]
max_line_length = off
# Php accepted standard (PSR-2, Symfony)
[{*.{php,phtml},php_cs.dist,console,phpunit}]
indent_size = 4
# Python accepted standard (PEP8)
[*.py]
indent_size = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment