Sublime Forum

In ruby, end after a class declaration does not outdent itself back to the left edge

#1

I open a ruby file, and enter ‘class Foo’. When I hit enter, it indents the cursor. If I type ‘end’, I expect it to shift back to the left, like it does correctly with other blocks (like if, while, each, etc.). But the ‘end’ remains indented, and I have to manually shift it back. Is there a setting to make indentation work properly with class…end?

(sublime text build 3126, running on macOS Sierra)

0 Likes

#2

seems to be working out the box for me:

although there seems to be something dodgy with auto indentation in ST, because if I delete that and try again, it doesn’t work the second time, but does the third time etc…

1 Like