Skip to content

Instantly share code, notes, and snippets.

@boredstiff
Created April 21, 2017 22:01
Show Gist options
  • Save boredstiff/b34cb4368d84de518a782f764913bc83 to your computer and use it in GitHub Desktop.
Save boredstiff/b34cb4368d84de518a782f764913bc83 to your computer and use it in GitHub Desktop.
PyCharm Live Templates
# RST =====================
============================
# Code block for RST #
============================
.. code-block:: python
$END$
=============================
# Inline code block for RST #
=============================
:code:`$END$`
# Python ====================
=============================
# Class Stub
=============================
class $class$($object$):
"""$cls_doc$"""
def __init__(self,$args$):
"""Constructor for $class$"""
$END$
=============================
# LOG DEBUG
=============================
LOG.debug('$SELECTION$ : {}'.format($SELECTION$))$END$
=============================
# LOG ERROR
=============================
LOG.error('$SELECTION$ : {}'.format($SELECTION$))$END$
=============================
# LOG INFO
=============================
LOG.info('$SELECTION$ : {}'.format($SELECTION$))$END$
=============================
# LOG WARNING
=============================
LOG.warning('$SELECTION$ : {}'.format($SELECTION$))$END$
=============================
# Print
=============================
print('$SELECTION$ : {}'.format($SELECTION$))$END$
=============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment