Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse?

前端 未结 7 2113
无人及你
无人及你 2020-12-04 09:43

In Eclipse, while coding in Java and press Ctrl + Shift + O auto import all the Classes automatically.
In NetBeans, this is done with

7条回答
  •  攒了一身酷
    2020-12-04 10:26

    Another option is to ask IDEA to behave like eclipse with eclipse shortcut keys. You can use all eclipse shortcuts by enabling this.

    Here are the steps:

    1- With IDEA open, press Control + `. Following options will be popped up.

    2- Select Keymap. You will see another pop-up. Select Eclipse there.

    3- Now press Ctrl + Shift + O. You are done!

提交回复
热议问题