PyCharm 2026.2 Help

Create and manage subprojects

A large project can be split into smaller parts, such as a backend, an API, and shared code. Each part can be configured as a separate subproject with its own pyproject.toml file.

PyCharm uses the pyproject.toml files in the project directory structure to detect and configure subprojects.

You can create a new subproject with uv, Poetry, Hatch, or pip, or convert an existing directory into a subproject.

Create a subproject

  1. In the Project tool window, right-click the directory where you want to create the subproject.

  2. Select New | New Project with...

    Create subproject
  3. In the dialog that opens, specify the subproject name and click OK.

    Create a subproject dialog

Convert a directory to a subproject

You can convert an existing directory into a subproject.

  1. In the Project tool window, right-click the directory that you want to convert.

  2. Select Convert to Project with....

    Convert directory to subproject

    PyCharm initializes a subproject in the selected directory. Existing files in the directory are preserved.

07 August 2026