DEPRECATED: as of 08-Jun-2015, Github added native support for EditorConfig.
This is a browser extension that provides EditorConfig support for GitHub.
You can download extension for your browser from the corresponding store:
Extension looks for .editorconfig
files in the repository the current file belongs to, and applies it's settings to code viewer and editor. Branch is always taken into account.
On options page you can also set default editorconfig.
You can test extension on files in demo folder of this repo.
Extension is built with Kango - cross-browser extension framework.
Sample .editorconfig:
Code viewer (tabs are set to preconfigured width of 4 instead of GitHub's default 8):
Code editor (preconfigured options are chosen and marked as (auto); trim_trailing_whitespace
and insert_final_newline
are taken into account on commit):
Options page (just a default .editorconfig
):