-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpython.json
62 lines (62 loc) · 1.55 KB
/
python.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"shebang-python-r": {
"prefix": "shebang",
"body": [
"#!/usr/bin/env ${1|python3,python|}"
],
"description": "Adds a shebang for Python scripts"
},
"shebang-python-encoding-r": {
"prefix": "shebang+encoding",
"body": [
"#!/usr/bin/env ${1|python3,python|}",
"# -*- coding: ${2|utf-8,latin-1,ascii|} -*-"
],
"description": "Adds a shebang and an encoding magic comment for Python scripts"
},
"shebang-python": {
"prefix": "#!python",
"body": [
"#!/usr/bin/env ${1|python3,python|}"
],
"description": "Adds a shebang for Python scripts"
},
"shebang": {
"prefix": "#!",
"body": [
"#!/usr/bin/env ${1|python3,python|}"
],
"description": "Adds a shebang for Python scripts"
},
"shebang-python-encoding": {
"prefix": "#!python+encoding",
"body": [
"#!/usr/bin/env ${1|python3,python|}",
"# -*- coding: ${2|utf-8,latin-1,ascii|} -*-"
],
"description": "Adds a shebang and an encoding magic comment for Python scripts"
},
"shebang-encoding": {
"prefix": "#encoding",
"body": [
"# -*- coding: ${1|utf-8,latin-1,ascii|} -*-"
],
"description": "Adds a magic comment for Python file encoding"
},
"Python Docstring": {
"prefix": "'''",
"body": [
"\"\"\"",
"",
"\"\"\""
],
"description": "Generate a Python docstring"
},
"Dunder Main": {
"prefix": "dunder",
"body": [
"if __name__ == \"__main__\":",
],
"description": "Expands to if __name__ == '__main__':"
}
}