Which IDE for Scala 2.8?

前端 未结 16 1128
我在风中等你
我在风中等你 2020-12-02 17:19

This is the same question for older version of Scala, but they say that Eclipse plugin has been improved vastly. Is it the best IDE now? How do different Scala IDE compare t

16条回答
  •  伪装坚强ぢ
    2020-12-02 17:27

    i use both eclipse and IDEA

    1. eclipse supports type detection is better than IDEA (it is very neccessery thing if you want program in functional style that you can be aware from type of expressions and variables.)


      Edit1: IDEA supports type detection like eclipse but you have to define a value in your functions for example: def testTs[A](a:List[String],b:List[A]) = for{ ai <- a bi <- b } yield (ai,bi) } should be converted to def testTs[A](a:List[String],b:List[A]):List[(String,A)]={ val result = for{ ai <- a bi <- b } yield (ai,bi) } also instead of hover your mouse over variables you must press ctrl+q when your mouse is hover on that variable

    2. eclipse have some problems in code completion (when you use a variable in next line and you want get a property of this variable eclipse show wrong code suggestions)
    3. in IDEA ruining a scala application is 5 sec slower than eclipse (there is some solution for bust IDEA run time but these have side effect have some problems) in idea there is a well known problem with double click speed that show itself in many cases like opening a file or selecting an string in source... you can increase double click time out by creating (or editing) /home/.Xresources and add this line: *.multiClickTime: 400

    Edit1: in summery i prefer to use IDEA rather than eclipse

提交回复
热议问题