PyCharm 2.7.2 Web Help

2.0+

File | Settings | Project Structure

settings

PyCharm | Preferences | Project Structure

settings

Use this page to configure content roots for each of the projects opened in the same window.

In this section:

Projects pane

ItemDescription
ProjectsThis pane displays the list of projects, opened in the same window. The first project in the list is the primary project.

This pane is not shown, if there is only one open project.

Add content roots pane

ItemTooltipDescription
addRootAdd Content Root Add a new root to the content roots. Click the button and navigate to the desired folder in the dialog that opens.
rootRemoveRemove Content EntryDelete selected content root from the project.
rootUnmark UnmarkRemove marking of a content root and denote it with a regular directory icon directory.png.

Configure content roots pane

ItemTooltipDescription
rootSourceSources Mark a folder as a source root. Such folder displays in the list of source roots.

If a folder is marked as a source root, it will be added to PYTHONPATH, and resolve will be performed against it.

This command is duplicated on the context menu of a content root.

rootExcludedExcluded Mark a folder as an excluded root.

Excluded roots are not visible to PyCharm. Usually, one would like to exclude temporary build folders, generated output, logs, and other project output. Excluding the unnecessary paths is a good way to significantly improve performance.

This command is duplicated on the context menu of a content root.

See Also

Concepts:

Procedures:

Web Resources: