Improved HAML auto-indenting in RubyMine 2.0.2

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

This entry was posted in Feature, Productivity and tagged , . Bookmark the permalink.

3 Responses to Improved HAML auto-indenting in RubyMine 2.0.2

  1. This improvements are welcome. Thank you.

  2. 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

    %fb:profile-pic{}

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

  3. Oleg Shpynov says:

    I’ve created an issue: http://youtrack.jetbrains.net/issue/RUBY-5937
    Feel free to track progress!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">