Skip to content

RReverser/github-editorconfig

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

github-editorconfig

DEPRECATED: as of 08-Jun-2015, Github added native support for EditorConfig.

This is a browser extension that provides EditorConfig support for GitHub.

Download links

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

Description

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.

Screenshots

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):

Options page (default editorconfig)