Skip to content

Instantly share code, notes, and snippets.

@rodrisan
Created November 17, 2015 17:40
Show Gist options
  • Select an option

  • Save rodrisan/c2bedd4b5642722a87ed to your computer and use it in GitHub Desktop.

Select an option

Save rodrisan/c2bedd4b5642722a87ed to your computer and use it in GitHub Desktop.
An .editorconfig file for WordPress projects following WordPress coding standards
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# http://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4
[*.{md,sass,scss,less}]
insert_final_newline = true
indent_style = space
indent_size = 2
[*.{json,yml,xml,xml.dist}]
insert_final_newline = false
indent_style = space
indent_size = 2
[*.{txt,md}]
indent_style = space
indent_size = 2
end_of_line = crlf
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment