This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Intellisense in Scala interpeter?

1 reply
vkelman
Joined: 2008-08-20,
User offline. Last seen 1 year 15 weeks ago.

As I understand, Scala and F# shares, besides other things, that incremental
spirit: both environments encourage to use interpreter to write small
functions and to immediately try/test them.
However, F# interpreter is integrated into Visual Studio and supports
IntelliSense. It brings a big advantage and really helps to learn language.
While IDE like Eclipse/Netbeans/IntelliJ IDEA Scala plugins provide
IntelliSense (auto-completion too), they are not suitable for incremental
writing of small scripts. And Scala interpreter does not provide
IntelliSense.
Is there any hope for Scala interpreter with integrated IntelliSense,
similar to what F# has?

-----
Vladimir Kelman
http://pro-thoughts.blogspot.com/

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Intellisense in Scala interpeter?

On Wed, May 13, 2009 at 9:20 PM, vkelman wrote:
> Is there any hope for Scala interpreter with integrated IntelliSense,
> similar to what F# has?

You mean like this? I think you need to have a chat with paulp ;-)

miles@lewis:latest$ bin/scala
Welcome to Scala version 2.8.0.r17725-b20090513185406 (Java
HotSpot(TM) Server VM, Java 1.6.0_10).
Type in expressions to have them evaluated.
Type :help for more information.

scala> object Foo { def foo = "foo" }
defined module Foo

scala> Foo.

asInstanceOf foo getClass isInstanceOf toString

scala> Foo.foo
res1: java.lang.String = foo

scala>

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland