From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Project Settings | Modules. Select the necessary module and then open the Sources tab in the right-hand part of the dialog. Click Add Content Root and specify the folder that you want to add as a new content root.
Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Package Search.
Disable Compact Empty Middle Packages option in the Project View
:
You will now see admin
as a separate node and will be able to create a new package inside it.
You can follow these steps:
Select the package from Project Pane
Double click the relevant section from the breadcrumb. Then it will get selected.
Right click on the same item
Select "New" → "Package" from the menu
Follow these steps:
First set the folder as a "Sources Root" by right clicking and navigating to "Mark directory".
Right click on the same item
Select "New" → "Package"
In my case, I was not able to see the create new package option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With