in JavaScript ~ read.

Browser extension: EditorConfig for GitHub

View on GitHub

Just published a browser extension that provides EditorConfig support for GitHub.

You can download extension for your browser from the corresponding store:


Extension looks for .editorconfig file in the root of repository the current file belongs to, and applies it's settings to code viewer and editor. Branch is always taken into account.

In options you can also set default editorconfig that will be used for repos without custom one.

It's built with Kango - cross-browser extension framework.


Sample .editorconfig:
Sample .editorconfig

Code viewer (tabs are set to preconfigured width of 4 instead of GitHub's default 8):
Code viewer

Code editor (preconfigured options are chosen and marked as (auto); trim_trailing_whitespace and insert_final_newline are taken into account on commit):
Code editor

Options page (just a default .editorconfig for repos without custom one):
Options page (default editorconfig)