This extension provides EditorConfig support for GitHub.
It looks for .editorconfig files in the repository the current file belongs to, and applies their settings to code viewer and editor. Branch is always taken into account.
You can also set default editorconfig that will be used for repos without custom one. By default, it fixes tab size to 4 spaces per tab for all files but Ruby (2 spaces per tab).