Book Image

Mastering PyCharm

By : Nafiul Islam
Book Image

Mastering PyCharm

By: Nafiul Islam

Overview of this book

Table of Contents (18 chapters)
Mastering PyCharm
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Surround templates


Surround templates allow you to take advantage of the Surround With action. An example of an in-built Surround With (Command/Ctrl + T) template is the try / except block:

You can see that there are a few live templates that I can use since I've made them myself. The key to using surround templates is using the SELECTION variable. Here is a simple demonstration: