Search code examples
rubymine

RubyMine automatically add end after typing do. How do enable this?


Currently when I type something like this:

it "returns 8 milk chocolates and 1 sugar free chocolate" do

I have to hit enter twice in order to add the end. This is annoying to me. How do I enable this to just automatically add end and bring my cursor to the correct indented position after I hit enter? What can I do?


Solution

  • This did it for me:

    Settings | Editor | General | Smart Keys

    ... then check "End on blank line"