PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Surround code fragments

Last modified: 11 February 2024

PyCharm provides standard templates for surrounding code fragments with various constructs based on the language of the source code. This includes if...else conditional statements, do...while and for loops, combinations of try...catch...finally, XML tags, folding regions, and other constructs.

This feature applies to the following languages (contexts):