3

I would like to disable automatic insertion of end for def/while/class/etc. in Rubymine 7.0.

For example, if I type def and press enter, an end is automatically added below the new line:

# Before I press enter:
def|

# After I press enter:
def
  |
end

I've looked through the options in File > Settings... and can see options for similar features (such as automatic insertion of closing ) characters, which I have unchecked) but nothing specifically for end.

An answer to a similar question suggests using the Rubymine "registry" (accessible via Help > Find Action... > "registry" as explained here) but this doesn't seem to have had any effect.

Community
  • 1
  • 1
GoBusto
  • 4,632
  • 6
  • 28
  • 45

1 Answers1

1

Uncheck the line End (on blank line) in File > Settings > Editor > General > Smart Keys.

boomslang
  • 118
  • 1
  • 1
  • 6
  • 1
    Thanks for taking the time to reply. Unfortunately, I'm not using Rubymine any more (I've switched my work machine over from Windows 8 to Debian) so won't be able to confirm that this works right away. I'll ask someone else at the office if they can verify this for me, and accept/upvote your answer once I'm sure that it does what I want. – GoBusto Feb 20 '15 at 10:36
  • Just out of curiosity: Why haven't you stuck with RubyMine? It's working alright on my Ubuntu machine. – boomslang Feb 20 '15 at 12:30
  • 1
    The machine I use was already set up with Windows 8 and Rubymine when I started working here; I didn't actually *want* to use either of them! – GoBusto Feb 20 '15 at 12:37