We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b00a7c9 commit 464517dCopy full SHA for 464517d
snippets/python-mode/with-open
@@ -0,0 +1,8 @@
1
+# -*- mode: snippet -*-
2
+# name: with-open
3
+# key: wo
4
+# group : control structure
5
+# contributor: Quazgar
6
+# --
7
+with open(${1:"filename"}${2:, encoding="${3:utf-8}"}${4:, mode="${5:w}"}) as ${6:myfile}:
8
+ $0
0 commit comments