Improved HAML auto-indenting in RubyMine 2.0.2

Eugene Toporov

When you edit the code you should only think about the code, not the way it looks. And a good IDE, such as RubyMine, should do the rest, like auto-indenting and formatting the code as you type.

So, we are constantly improving our already-the-best Rails IDE. This time we’ve made some enhancements in HAML auto-indentation. For HAML’s indent-based markup this is especially important.

Below are some examples how it works now (‘before’ image on the left and ‘after’—on the right, with the caret shown).

  • In HAML tags:
  • In HAML comments:
  • In Ruby code inside HAML:

Isn’t it nice? Let us know if you have some comments or ideas.

Check out RubyMine 2.0.2 RC2 as it brings lot’s of other stuff too.

Develop with pleasure!
JetBrains RubyMine Team

Comments below can no longer be edited.

3 Responses to Improved HAML auto-indenting in RubyMine 2.0.2

  1. J. Pablo Fernández says:

    April 16, 2010

    This improvements are welcome. Thank you.

  2. Kabriel Robichaux says:

    April 20, 2010

    Nice changes, glad to see you working on the HAML support. However one issue that is bothering me is the HAML highlighting seems to break when using elements with a namespace, such as


    it breaks at the “:” and no highlighting will be shown for that level in the rest of the document.

  3. Oleg Shpynov says:

    April 20, 2010

    I’ve created an issue:
    Feel free to track progress!


Subscribe for updates