Create new package in IntelliJ

前端 未结 3 663
迷失自我
迷失自我 2021-01-30 13:04

I\'ve just moved from years of using Eclipse to the brave new world of IntelliJ and I\'m trying to iron out the little (trivial) little things that are slowing me down.

相关标签:
3条回答
  • 2021-01-30 13:09

    You can follow these steps:

    1. Select the package from Project Pane

    2. Double click the relevant section from the breadcrumb. Then it will get selected.

    3. Right click on the same item

    4. Select "New" → "Package" from the menu

    0 讨论(0)
  • 2021-01-30 13:12

    Follow these steps:

    1. First set the folder as a "Sources Root" by right clicking and navigating to "Mark directory".

    2. Right click on the same item

    3. Select "New" → "Package"

    In my case, I was not able to see the create new package option.

    0 讨论(0)
  • 2021-01-30 13:26

    Disable Compact Empty Middle Packages option in the Project View:

    compact

    You will now see admin as a separate node and will be able to create a new package inside it.

    0 讨论(0)
提交回复
热议问题