newbie questions

Hi,

I have a few questions, some may be general IDEA questions.

1. Given that the cursor is on (or after)  a method name, how do I see the list of arguments this method(s) accepts? (e.g., i have foo.bar() and i put the cursor inside the parenthesis)

2. given a variable (var/val), how can I see its type (with type inference, sometimes this is not exactly clear from the code)?

Thank you,
Ittay

0

1. Use Ctrl + P shortcut. For more information read: http://www.jetbrains.net/confluence/display/SCA/Parameter+Info
2. You can press Ctrl on reference to this val/var, then you will see infered type (with our not fully implemented type inference): http://www.jetbrains.net/confluence/display/SCA/Go+to+Declaration
Another way to invoke Introduce Variable Refactoring dialog after selecting expression: http://www.jetbrains.net/confluence/display/SCA/Introduce+Variable


For all features you can find info here: http://www.jetbrains.net/confluence/display/SCA/Scala+Plugin+0.2+features

Best regards,
Alexander Podkhalyuzin.

0
Avatar
Permanently deleted user

To see the type I use "Ctrl-q".

0

Cool. That's exactly what I was looking for!

0

请先登录再写评论。