I found the IntelliJ docs[1] handy for discovering predetermined variables like $END$ and $SELECTION$.
[1]: http://www.jetbrains.com/idea/webhelp/live-templates.html
[1]: http://www.jetbrains.com/idea/webhelp/live-templates.html
Don't know what I'd do without PyCharm.