We enforce consistency in editor defaults using an .editorconfig
. The contents of our preferred editorconfig settings are:
root = true
[*]
indent_style = tab
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
# YAML files cannot have tabs
# @see https://yaml.org/faq.html
[*.yml]
indent_style = space
Automated enforcement of .editorconfig
is enabled for you by default in boxen if you use Atom or Sublime Text.
Everyone (unless you're an exception, and you'll know if that is the case) has an available .editorconfig
in their user directory for consumption by editors.
If you use a different editor, check to see if your editor has support for, or a package/plugin that supports, editorconfig and install/enable it.
It is known that BBEdit, for some inexplicable reason, does not support editorconfig. It's probably possible to replicate the editorconfig settings by adjusting preferences. Shrug.