From the desk of Cabel Engineering Dept.

February 17th, 2015

EditorConfig is a clever idea: a simple text file you can put anywhere in your code source that automatically changes settings in your favorite text editor.

For example, let’s say someone decided one project had to use space indentation (for Python?) even though everybody usually uses tabs. With EditorConfig, you can easily declare this setting in an .editorconfig file in the root of the project…

# top-most EditorConfig file

root= true

# 4 space indentation

[*]

indent_style= space

indent_size= 4

…or you could put this file in any folder in your project, and the editor will automatically pick it up. Then, you can easily check this file in to your source control system. Anyone who checks out your project — and uses a EditorConfig-capable editor — will automatically inherit the recommended editor settings.

We thought this was pretty cool, and so did our users, so we went ahead and built an EditorConfig plug-in for Coda 2.5. It currently supports everything except for the text encoding setting.

Mayte Eme

Ben

Bob Rockefeller

Very nice! This is a feature I’ve wanted in Coda for some time and it provides lots of flexibility for those writing in different “languages” that often want different indentation. I like Tabs:3 for PHP and Spaces:2 for YAML, for example.