Reformat Code does not follow the Code Style settings for indent methods after access modifier

Completed

I have set my Code Style for Ruby as follows:

But when I reformat code (Ctrl+Alt+L) it resets indentations after access modifier. It does not follow my Code Style settings.

Before reformat:

class Example
def public1
end

private

def private1
end
end

After reformat:

class Example
def public1
end

private

def private1
end
end

How can I keep the indentation?

4 comments
Comment actions Permalink

Hello,

could you please specify your RubyMine version? I've checked it in 2019.3 EAP but didn't manage to reproduce.

0
Comment actions Permalink

Hello Olga,

Thanks for the comment.

I was using 2019.1.4 from stable releases. I updated it to 2019.3 EAP, but it is still happening.

RubyMine 2019.3 EAP
Build #RM-193.4386.6, built on October 8, 2019

0
Comment actions Permalink

Do you have any 3rd party plugins installed? If so then could you please try disabling them. 

1
Comment actions Permalink

Thank you! Disabling the plugins solved the issue.

It started working correctly when I disabled all the third-party plugins, and now it's working even after enabling them back.

0

Please sign in to leave a comment.