Rubymine 7.0: Disable automatic insertion of "end"

256 views Asked by At

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.

1

There are 1 answers

3
boomslang On BEST ANSWER

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