Autocomplete inside method brackets
I don't know if this is a bug, but in Java, if I write the following code, and hit ctrl+space (autocomplete) with the cursor just after the opening bracket, I get a list of matching method definitions, so for the following example I get println(), println(boolean b), println(char x), etc. etc.
System.out.println()
I use this feature all the time in Java, since it helps remind me which parameters I need to pass to the method.
In the Scala IDE, I get a list of autocomplete stuff, but it doesn't include the method signatures at the top, like Java does.
Edit (for the feature described below see ticket #1000954
Furthermore, if I hit F2 with the cursor in the method name (e.g. after "pri" and before "ntlin" in the example above), then in Java it shows me the Javadoc, including the method signature, even if there is a compiler error.
In the Scala IDE, F2 just shows me the error, which doesn't always include the signature, so I am clueless as to what parameters I have to pass to the parameter.
My wish would be for the Scala IDE to behave the same as the Java IDE, if possible.
see also: https://groups.google.com/d/topic/scala-ide-dev/X_3zjc9VHrU/discussion
System.out.println()
I use this feature all the time in Java, since it helps remind me which parameters I need to pass to the method.
In the Scala IDE, I get a list of autocomplete stuff, but it doesn't include the method signatures at the top, like Java does.
Edit (for the feature described below see ticket #1000954
Furthermore, if I hit F2 with the cursor in the method name (e.g. after "pri" and before "ntlin" in the example above), then in Java it shows me the Javadoc, including the method signature, even if there is a compiler error.
In the Scala IDE, F2 just shows me the error, which doesn't always include the signature, so I am clueless as to what parameters I have to pass to the parameter.
My wish would be for the Scala IDE to behave the same as the Java IDE, if possible.
see also: https://groups.google.com/d/topic/scala-ide-dev/X_3zjc9VHrU/discussion
Leave a comment
scala screenshot
java screenshot - including all overloaded methods
It is a worthy enhancement. Regarding Scaladoc, that's a missing feature and it needs support from the compiler. See #1000210.
on 2013-07-22 07:33 *
By Mirco Dotta
And ScalaDoc/type information integration on F2 is another missing feature. See #1000954
on 2013-07-22 07:36 *
By Mirco Dotta
Version changed from 2.1.0-M1-210 to 3.0.1-210
Description changed from I don't know if this is a b... to I don't know if this is a b...
on 2013-07-22 07:42 *
By Mirco Dotta
Description changed from I don't know if this is a b... to I don't know if this is a b...
on 2013-08-27 10:09 *
By danstryder
Fixed in version set to 4.0.0-nightly
Status changed from New to Fixed
In scala-ide:7581f59031c010c35e55ff2fdc93a7f8202997bc Add Apply case to ScalaCompletions. Fixes #1001218
This allows scalaCompletions to handle method invocation completions.
Also refactored scalaCompletions to tidy things a little.