Merge pull request #10 from wsantos/master
More snippets options for python
This commit is contained in:
commit
dfbb909351
@ -53,6 +53,27 @@ snippet property
|
||||
${3:return self._$1}
|
||||
def fset(self, value):
|
||||
${4:self._$1 = value}
|
||||
# Ifs
|
||||
snippet if
|
||||
if ${1:condition}:
|
||||
${2:code...}
|
||||
snippet el
|
||||
else:
|
||||
${1:code...}
|
||||
snippet ei
|
||||
elif ${1:condition}:
|
||||
${2:code...}
|
||||
# For
|
||||
snippet for
|
||||
for ${1:item} in ${2:items}
|
||||
${3:code...}
|
||||
# Encodes
|
||||
snippet cuft8
|
||||
# -*- coding: utf-8 -*-
|
||||
snippet clatin1
|
||||
# -*- coding: latin-1 -*-
|
||||
snippet cascii
|
||||
# -*- coding: ascii -*-
|
||||
# Lambda
|
||||
snippet ld
|
||||
${1:var} = lambda ${2:vars} : ${3:action}
|
||||
|
Loading…
x
Reference in New Issue
Block a user