IntelliJ IDEA 2017.3 Help

Configuring Load Path

This feature is only supported in the Ultimate edition.

The following is only valid when Ruby Plugin is installed and enabled!

In this section:

Basics

The load path is the path where require and load statements will look for files. The specified paths will be used in code completion for require and load. If the load path is not defined, code completion will suggest only the paths relative to the project root.

A directory that belongs to the load path is marked as the source root directory root_Source.png in the project view.

Configuring load paths via project structure

To define load paths via Load Path page of the project structure

  1. Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S), and then click Load Path.
  2. Click add.
  3. Locate the desired path in the Select Path dialog box.

Configuring load paths via context menu

To define load paths via context menu of the Project tool window

  1. Right-click the desired directory in the Project Tool Window.
  2. On the context menu, point to Mark Directory As node.
  3. Choose Load Path Root.
    ruby load path

    The directory in question is marked with the source root icon root_Source.png.

To unmark a directory, choose Unmark directory as load path on the context menu. The directory is then denoted with regular folder icon folder.

Last modified: 6 March 2018

See Also