IntelliJ IDEA 11.1 Web Help

11.0+

File | Project Structure | Libraries
File | Project Structure | Global Libraries
Ctrl+Alt+Shift+SCommand Semicolon

For information on accessing the Configure Library dialog, see Creating a new library and adding it to a module and Configuring the library contents.


To edit the name of a library and to manage the library contents, use:

On this page:

Name field and controls for managing the library contents

Item Description
Name Use this field to edit the library name.
add (Alt+InsertControl N ) Use this icon or shortcut to add items to the library. Select the necessary option from the menu that opens. The available options depend on the library type:
delete (Alt+DeleteCommand Delete) Use this icon or shortcut to remove the selected items from the library.

Options for adding items to a Java or ActionScript/Flex library

Item Description
Attach Files or Directories Whichever resource types available locally you want to add to the library (classes, sources, documentation, etc.), use this option.

In the dialog that opens, select the necessary files and folders. For a Java library, these may be individual .class, .java, .jar and .zip files, the directories containing such files, etc. For an ActionScript/Flex library, these may be raw ActionScript 3 libraries, .swc, .jar and .zip files, the directories containing such files, and so on.

Note that a number of files and folders can be selected simultaneously.

IntelliJ IDEA will analyze the selected files and folders, and automatically assign their contents to the appropriate library categories (Classes, Sources, Documentation, etc.).

In cases when detection of a category is problematic (e.g. when you select an empty folder), a dialog will be shown, in which you will be able to specify the category yourself.

Specify Documentation URL To be able to use external documentation available online, use this option and specify the URL of the external documentation in the dialog that opens.

Options for adding items to a JavaScript library

Item Description
Attach Files or Directories Use this option to add a number of JavaScript files to the library.

In the dialog that opens, select the necessary files and folders. These may be individual JavaScript files and the directories containing such files. Note that a number of files and folders can be selected simultaneously.

IntelliJ IDEA will analyze the selected files and folders, and automatically assign the JavaScript files to the appropriate categories. Minified files will be assigned to the Release category; ordinary (uncompressed) files will be assigned to the Debug category.

In cases when detection of a category is problematic (e.g. when you select an empty folder), a dialog will be shown, in which you will be able to specify the category (Release or Debug) yourself.

Attach Debug Version(s) Use this option to add a single uncompressed JavaScript file or a directory containing such files.

Note that IntelliJ IDEA won't analyze the contents of the selected files. If you select a minified JavaScript file or a directory containing minified JavaScript files, the corresponding file or files will still be added to the library.

Attach Release Version(s) Use this option to add a single minified JavaScript file or a directory containing such files.

Note that IntelliJ IDEA won't analyze the contents of the selected files. If you select an ordinary (uncompressed) JavaScript file or a directory such files, the corresponding file or files will still be added to the library.

Specify Documentation URL To be able to use external documentation available online, use this option and specify the URL of the external documentation in the dialog that opens.
Download Documentation For jQuery: use this option to download and include jQuery documentation in the library.

See Also

Concepts:

Procedures:

Web Resources: