PyCharm 2017.3 Help

Project Structure

File | Settings | Project Structure for Windows/Linux
PyCharm | Preferences | Project Structure for macOS
Ctrl+Alt+S
settings


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.

Project Structure

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

Configure content roots

ItemTooltipDescription
root_Source.png Sources 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.

root Excluded Excluded 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.

template folder iconTemplates Mark a folder as a template root, where all the directories, containing templates in the supported template languages, are stored.

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

By default, the directory that has been defined as the templates folder on project creation, is marked as template folder icon.
Note that if a directory is specified in the TEMPLATES_DIR of the settings.py file, then, on the first project opening, it is automatically marked as the template root.

rootResourceIJResourcesClick this button to mark a folder as a resource root, for the static contents such as CSS or JavaScript files.

Add/remove content roots

ItemTooltipDescription
addRoot Add Content Root Add a new root to the content roots. Click the button and navigate to the desired folder in the dialog that opens.
rootRemove Remove Content Entry Delete selected content root from the project.
rootUnmark UnmarkRemove marking of a content root and denote it with a regular directory icon directory.png.
Last modified: 28 March 2018

See Also