Cannot make Autocomplete work on Rubymine

I'm trying to make autocomplete work on Rubymine, but without success.

I have a method defined:

def change_log(dept, text)
   raw("<div class='label label-info'>#{dept}</div> #{text}<br />")
end

But when I use it, Rubymine only shows me the "suggestion", but I still have to type everything. Ex: 

= change_log "Example dept", "Example text"

I expected to Rubymine do help me complete, typing the function with "slots" for me to complete, only on the arguments fields; something like XCode, or other similar tools. Is that possible?

0
3 comments

Hello Fernando,

do you mean completing on Enter? If so then type "Registry" in Search everywhere, look for ide.completion.lookup.element.preselect.depends.on.context and unselect it.

0

Hello Olga. I tried to unselect this registry value, but it had no effect. 

I think I wasn't clear enough. I attached 2 screenshots:

The one above, is shown when I start to type "change_log" to use that function. Rubymine shows me the available funcitions, including that one that I need.

Then I press ENTER, or TAB, or click on it, Rubymine only finished typing "= change_log". It's up to me to open the brackets, type the DEPT, comma, TEXT and close blackets). I was expecting something like the picture below, after I pressed ENTER:

Rubymine could write the completo function (like Xcode does) and I would need only to replace the DEPT and TEXT fields with the appropriate values.

For short and simples functions, it's not that important, but for functions that have many attributes, it's a need.




0

Hello Fernando,

thank you for explanations, I've submitted the corresponding feature request so please vote for it:

https://youtrack.jetbrains.com/issue/RUBY-19149

0

Please sign in to leave a comment.