RubyMine 7.0.0 Web Help

Any project contains at least one content root created together with the project.

You can create additional content roots as well as remove the unnecessary ones.

In this section:

To create a new content root
  1. Open the Project Structure settings.
  2. In the Projects pane of the Project Structure page, click the project you want to configure content roots for.
  3. In the Content roots of the Project Structure page, click the Add Content Root button addRoot.
  4. In the dialog that opens, locate the desired directory and click OK.

    ruby_addContentRoot.png
    Click thumbnail to view larger image.

To remove a content root
  1. Open the Project Structure settings.
  2. In the Projects pane of the Project Structure page, click the project you want to configure content roots for.
  3. In the Content roots pane of the Project Structure page, select the content root to be deleted.
  4. Click the Remove Content Entry button web_ide_remove_content_root.png.

    ruby_deleteContentRoot.png

  5. Confirm deletion.
Specifying folder categories in the Project tool window

Here is how you assign a folder to a different category. In a similar way, you can assign a folder to any other category.

  1. Open the Project tool window (e.g. View | Tool Windows | Project).
  2. Select the folder that you want to assign to test sources.
  3. In the context menu, point to Mark Directory As and select the desired category. chef_mark_directory_as

In a similar way you can change the folder category at a later time. (Just select a different category from the context menu.)

To cancel the folder association with its current category (i.e. to make a folder an "ordinary" folder folder), select Unmark as <current_category> Root (e.g. Unmark as Test Sources Root).

See Also

Concepts:

Reference:

Web Resources: