Automatic variable names in scala

Hello everyone,
I'm using Idea 13.1.5 for writing Scala and Java code (Just started with Scala).
When writing in Java it's easier to create names for variables, for example if I start typing:
private SomeService
And then I click "CTRL+Space", Idea will automatically offer the name "someService" for this variable.
Is there a way to do that in Scala? How can I use it?

I know in scala the name comes before the type but I'm still hoping for some magic from the Idea devs.

Thanks

2 comments
Comment actions Permalink

That's simple in Scala too. Just write expression before value then use introduce refactoring. See attached gif.

Best regards,
Alexander Podkhalyuzin.



Attachment(s):
SomeService.gif
0
Comment actions Permalink

Great, that's what I needed :)
Thanks

0

Please sign in to leave a comment.