Skip to content

Instantly share code, notes, and snippets.

@JoseCage
Created December 16, 2016 10:29
Show Gist options
  • Save JoseCage/328be2533beefe9d9a271758ba918838 to your computer and use it in GitHub Desktop.
Save JoseCage/328be2533beefe9d9a271758ba918838 to your computer and use it in GitHub Desktop.
Custom EditorConfig
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Use 2 spaces for indentation in HTML, JavaScript, Ruby, SCSS, and XML
[*.{html,js,rb,scss,xml}]
indent_size = 2
[Gemfile*]
indent_size = 2
[Rakefile]
indent_size = 2
# Use 4 spaces for indentation in Markdown files
[*.md]
indent_size = 4
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment