Don't insert line breaks to when cases
Answered
Is there a way to let rubymine not to insert line breaks to when cases?
The "Reformat code" inserts line breaks to when cases. I want to change this code style.
```
# Before reformatting code
case str
when 'aaa' then do_aaa
when 'bbb' then do_bbb
end
```
```
# After reformatting code
case str
when 'aaa' then
do_aaa
when 'bbb' then
do_bbb
end
```
Thanks,
Shinohara
Please sign in to leave a comment.
Hello Shinohara,
you can uncheck 'Kepp line breaks when reformatting' option in Settings | Editor | Code Style | Ruby, but this will be applied to all the code. We also have a corresponding issue on our tracker so please ad your vote: https://youtrack.jetbrains.com/issue/RUBY-19544