Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Made some additions to the snippets #205

Merged
merged 2 commits into from
Jul 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions snippets/language-python.cson
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
'#!/usr/bin/env python':
'prefix': 'env'
'body': '#!/usr/bin/env python\n'
'#!/usr/bin/env python3':
'prefix': 'env3'
'body': '#!/usr/bin/env python3\n'
'# coding=utf-8':
'prefix': 'enc'
'body': '# -*- coding: utf-8 -*-\n'
Expand Down Expand Up @@ -95,6 +98,9 @@
'Dictionary Comprehension':
'prefix': 'dc'
'body': '{${1:key}: ${2:value} for ${3:key}, ${4:value} in ${5:variable}}'
'Set Comprehension':
'prefix': 'sc'
'body': '{${1:value} for ${2:value} in ${3:variable}}'
'PDB set trace':
'prefix': 'pdb'
'body': 'import pdb; pdb.set_trace()'
Expand Down