Skip to content

Instantly share code, notes, and snippets.

@HemersonTacon
Last active April 12, 2022 14:13
Show Gist options
  • Save HemersonTacon/aebd45bdd8fe556431cbb9ca75034180 to your computer and use it in GitHub Desktop.
Save HemersonTacon/aebd45bdd8fe556431cbb9ca75034180 to your computer and use it in GitHub Desktop.
Postfix templates for PyCharms plugin "Custom Postfix Templates"
.var : New variable
ANY → $var$ = $expr$
.str : Cast to string
ANY → str($expr$)
.fstr : Apply f-string formatting
ANY → f"{$expr$}"
.list : Cast to list
ANY → list($expr$)
.float : Cast to float
ANY → float($expr$)
.int : Cast to int
ANY → int($expr$)
.tuple : Cast to tuple
ANY → tuple($expr$)
.set : Cast to set
ANY → set($expr$)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment