PyCharm
 
Get PyCharm

Surround code fragments

Last modified: 24 January 2025

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):