Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create new package in IntelliJ

People also ask

How do I create a resource package in IntelliJ?

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.

How do I open a package in IntelliJ?

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:

compact

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:

  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

    enter image description here


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.