zjffdu
zjffdu

Reputation: 28804

How to import scala class automatically in eclipse?

I use eclipse as my scala ide. And I know that in java I can use short cut by content assistent to import classes. So I do not need type in the whole class name. Just need to type the first several characters.

But in scala, I can not import classes automatically. Do I need to do some set up or it is just because scala plugin do not support this.

Upvotes: 4

Views: 3105

Answers (2)

tuxSlayer
tuxSlayer

Reputation: 2824

Ctrl + 1

on symbol works for me :)

Upvotes: 5

ahmet alp balkan
ahmet alp balkan

Reputation: 45214

There is Scala IDE for Eclipse however it is not very mature these days, however improving day by day. As far as I remember it can import automatically, or you can use Eclipse global fix import hotkey ctrl+shift+o.

Upvotes: 3

Related Questions