When I import something it disappears directly automatically

已回答

Hello all,

Unfortunately I pressed something wrong on my keyboard and since then the import of directories disappears. I enter import ...; and as soon as I make the semicolon, the import disappears. Do you know what setting I have to make to undo this?

Thank you :)

 

0

Settings (Preferences on macOS) | Editor | General | Auto Import | Optimize imports on the fly. When this setting is enabled, IDE will remove unused imports automatically.

You are not supposed to type the imports manually, write your code using these classes and the IDE will add imports for you.

0

请先登录再写评论。