Can Eclipse be used to generate the Scala inferred object type?

With Intellij it is possible to generate the type of a variable. For example :

val rec = "String"

can be converted to

val rec : String = "String"

using the Intellij IDE.

Can Eclipse be used in same way : generate the type of variable within the source code ?


The Scala IDE 4 nightly contains this feature as a quick fix (not sure if the RC does too).

Just hit CTRL+1 when your cursor is placed on the given expression.

Hovering over the variable also displays the type of the variable which can be copied/pasted but not as clean as accepted answer.

Need Your Help

toogle li in jquery

jquery html-lists toggle

I have the following list:

Rhino Mock Stub Async Method

unit-testing asynchronous nunit rhino-mocks c#-5.0

I have a ViewModel which, in the constructor, makes a call to an async void method to add to a collection

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.