IntelliJ IDEA 14.0.0 Web Help

Creating Packages

IntelliJ IDEA makes it possible to create packages under the source rootSource or test rootTest roots, using the Project tool window. The packages are marked with the iconPackage icon.

Besides that, it is possible to add package information file to package.

In this section:

To create a new package

  1. Select the destination node in the Project tool window.
  2. Do one of the following:
    • On the main menu, choose File | New | Package
    • On the context menu of the selection, choose New | Package
    • Press Alt+Insert, and then choose choose Package.
  3. In the New Package dialog box, specify the package name and click OK.
13.0+

To create a package information file

  1. Select a package in the Project tool window.
  2. Do one of the following:
    • On the main menu, choose File | New | package-info.java
    • On the context menu of the selection, choose New | package-info.java
    • Press Alt+Insert, and then choose choose package-info.java.

See Also

Procedures:

Reference:

Web Resources:

Last modified: 12 November 2014
comments powered by Disqus