Snippets (live templates)
Live templates are a wonderful part of PyCharm. They are very helpful when there is a repetitive pattern that you need to type over and over again. PyCharm 3.4 introduced a couple of new snippets into the mix, so let's see how we can make our own by inspecting the snippets that are already available. Let's take a look at the
main snippet that comes bundled with PyCharm 3.4:
We can see that  is the snippet in question and it has its own abbreviation
main, and this is what we invoke with . The description for snippet  is what will be shown when you try to invoke Insert Live Template (Command/Ctrl + J). You can change ...