Just click the tree item you want to expand (for example src ) in project view, press and hold the * key and all nodes will be expanded pretty quickly.
Expand or collapse code elements To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + . IntelliJ IDEA collapses or expands all fragments within the selection, or, if nothing is selected, all fragments in the current file, for example, all methods in a file.
From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules. Select the necessary module and open the Sources tab. to the right of the necessary folder (folder path). Specify the path relative to the output folder root, and click OK.
Invoke package search Depending on a build tool in your project, open the appropriate build script in the editor. Press Alt+Insert and in the list that opens, select Add dependency. In the Dependencies tool window, search for the dependency you need, select it the list of search results and click Add.
Uncheck "Hide Empty Middle Packages" under the Project View settings dropdown:
As another solution of how to create another file in the intermediate package:
Use expanded hierarchy of packages on the top of the window as shown below
Or you just can right-click on left-sided project tab and pick "Compact Middle Packages"
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