With PyCharm, you can surround a fragment of source code with line comments. So doing, PyCharm supports two styles:

The two styles cannot be mixed up in one file. PyCharm will recognize the first folding comment encountered, and will assume this as a style chosen for the code.

The folding markers of a region are stored with the source code and can be shared across the team.

See Also

Procedures:

External Links:

Web Resources: