auto complete for =>

Hi All,

Is there some auto complete way to fill in the => in a line like this ?

<%= render :partial => @articles %>

So after the :partial is entered can I press a hot-key to fill in the {space}=>{space}    ?

It just seems that I'm so often typing it !

TIA Dave

4 comments
Comment actions Permalink

Hello Dave,

You can auto-complete :partial itself - in this case the => will be inserted
automatically. For example, you can type "render :p" Ctrl-Space.

Is there some auto complete way to fill in the => in a line like this
?

<%= render :partial => @articles %>

So after the :partial is entered can I press a hot-key to fill in the
=>    ?

It just seems that I'm so often typing it !


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks Dmitry,

That is not my experience

When I try I get the pink 'no suggestions'

I press Control + Shift + . first then type the render etc...

I am playing around with 2.0 beta & I am editing a file called index.html.erb

regards, Dave

ps control + space inserts the @articles OK !

0
Comment actions Permalink

Hello Dave,

That is not my experience

When I try I get the pink 'no suggestions'

This should work. Is your application is rails one? Could you provide whole content of your file. Also please show a screenshot of your File | Settings | Ruby SDK and Gems dialog

0
Comment actions Permalink

All Fixed !  Thank you....

The Rails 2.3.4 core gems were 'missing gems' so once I attached them all is well...

& Thanks for the 2.0 beta testing discount, I will be buying in the next day or two...

Kind regards, Dave Porter

0

Please sign in to leave a comment.