PyCharm 2021.1 Help

Project Structure dialog

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

Projects pane

ItemDescription
Projects

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

Project Structure

Configure content roots

ItemTooltipDescription
root_Source.pngSources

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 from the context menu of a content root.

Excluded rootExcluded

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 from the context menu of a content root.

Template folderTemplates

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

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

Resources RootResourcesClick 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
the Add buttonAdd Content RootAdd a new root to the content roots. Click the button and navigate to the desired folder in the dialog that opens.
Remove content rootRemove Content EntryDelete selected content root from the project.
Root unmarkUnmarkRemove marking of a content root and denote it with a regular directory icon Icons nodes folder.
Last modified: 08 March 2021