These changes are intended to ensure that people working across different
IDEs and editors have the greatest chance of not introducing whitespace
or encoding changes in their PRs. The gitattributes addition is based on
my cross-platform experience when using windows and wsl2.
editorconfig reflects the variety of editors/ides I'm having to use across
platforms and is supported, at least, by vim, emacs, vscode and goland.
--- demonstration ---
I created a fake .vimrc that set tab size to 9 and told it to replace tabs with spaces too, then applied the editor config:
These changes are intended to ensure that people working across different IDEs and editors have the greatest chance of not introducing whitespace or encoding changes in their PRs. The gitattributes addition is based on my cross-platform experience when using windows and wsl2.
editorconfig reflects the variety of editors/ides I'm having to use across platforms and is supported, at least, by vim, emacs, vscode and goland.
--- demonstration ---
I created a fake .vimrc that set tab size to 9 and told it to replace tabs with spaces too, then applied the editor config:
https://www.youtube.com/watch?v=TaF7OJcM7Xk