Search form

You are here

EditorConfig Your Komodo

July 6, 2015 - 5:00pmnathanr

Ever heard of EditorConfig? We sure have. Numerous requests have come in for us to add support, on our bug tracker, our forums and even in person (we still have the stickers). A few weeks ago I finally took a few hours to just focus on implementing EditorConfig, roadmaps be damned.

It was actually surprisingly simple to implement using the libraries the EditorConfig project provides. Komodo's backend is largely Python based so all I had to do is include their Python library and expose it to our editor component.

EditorConfig in Komodo actually comes with a nice little extra; you can use Komodo preferences too! Meaning any simple string, boolean or integer preference that Komodo uses can be defined in your .editorconfig file. For example:

Notice the little section at the bottom there? Now keep in mind that these preferences were never intended to be exposed this way, so finding out what preferences you can use and how they work can take a little digging (DOM inspector to the rescue), but it makes for some interesting use-cases.

Keep in mind that this extra functionality is very experimental. If you mess up your Komodo install you can easily reset file level preferences by deleting your doc-sate.xmlc file from your profile folder (while Komodo is not running).

Installation

You can download the addon straight from our Resources section; just click the button below. Note that EditorConfig will be built-in to Komodo as of version 9.2.