code completion when editing erb files

when editing jsp files In IDEA,if I type '<body' and then press space,the editor will popup some hints to me,but when editing erb files using RubyMine,there is no hints popup,I must press some hotkey to let it popup,is there some setting that I must to do?
And if I type '<%=' then press space,maybe it should fill it with '%>' ?

2 comments
Comment actions Permalink

when editing jsp files In IDEA,if I type '<body' and then press space,the editor will popup some hints to me,but when editing erb files using RubyMine,there is no hints popup,I must press some hotkey to let it popup

Try ctrl+space

And if I type '<%=' then press space,maybe it should fill it with '%>' ?

I've filled an issue request - http://www.jetbrains.net/jira/browse/RUBY-3887.
If you insert <%,<%=,<%#,<%- with help of autocompletion after "<" character - RM will automatically close erb block. Also you can insert <% %> pair by Ctrl+Shift+. / Meta+Shift+.

0
Comment actions Permalink

press ctrl+space will popup some hints to me,but I love the way in IDEA more.

I have a <td>,and I want to add some property to it,in IDEA,I just type space after 'td',and it will popup something,then I choose something,and then type space,it will popup something again.
Now in RM,I type space after 'td' to get a space,and then I need press ctrl+space to get the hints,then type space,then press ctrl+space,there is some more work to do.How can I make it popup hints after I type space in the html node,but not after press ctrl+space?

0

Please sign in to leave a comment.