IntelliJ IDEA lets you manage your imports in Scala the same way as it does in other languages.

You can configure the imports in the Project Settings and in the IDE Setting. You can also optimize your imports and exclude classes from auto-import in the editor.

1.Project Settings

You can format your imports using Project Settings.

Project Settings
Code
Scala Imports

2.IDE Settings

You can configure the behavior of the imports in the editor through the IDE Settings.

IDE Settings
Editor
Auto Import

 You can select the following options:

3.Optimizing Imports

You can optimize imports using

Code
 →
Optimize Imports
command.

In this dialog box, specify from where you want IntelliJ IDEA to remove unused import statements, in order to optimize the import procedure.