Specifying folder categories

Here is how you assign a folder to a different category. In a similar way, you can assign a folder to any other category. This can be done both in the Project tool window and on the Project Structure page of the Settings/Preferences dialog.

To assign a category to a folder in the Project tool window, follow these steps

Open the Project tool window (e.g. View | Tool Windows | Project).

Select the folder that you want to assign to a certain category.

In the context menu, point to Mark Directory As and select the desired category.

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 ), select Unmark as <current_category> Root. (e.g. Unmark as Test Sources Root).

To assign a category to a folder in the Project Structure page, follow these steps