File tree Expand file tree Collapse file tree 1 file changed +32
-10
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +32
-10
lines changed
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ Now support these sinppets:
20
20
| prop| Property getter|
21
21
| props| Property getter/setter|
22
22
| propsd| Property getter/setter/deleter|
23
+ | deff| python functions|
24
+ | adef| python async functions|
25
+ | klass| python class without inheritance|
26
+ | klassi| python class with inheritance|
27
+ | forr| python for x in range(y)|
28
+ | afor| python async for in aiterables|
29
+ | openw| python open file by with statement|
23
30
24
31
## Added in v0.0.2
25
32
@@ -45,9 +52,7 @@ if __name__ == "__main__":
45
52
46
53
## Added in v0.0.4
47
54
48
- ### ` def `
49
-
50
- type ** def** and ** tab**
55
+ ### ` deff `
51
56
52
57
``` python
53
58
def func_name (func_args ):
@@ -56,8 +61,6 @@ def func_name(func_args):
56
61
57
62
### ` klass `
58
63
59
- type ** klass** and ** tab**
60
-
61
64
``` python
62
65
class class_name :
63
66
@@ -66,8 +69,6 @@ class class_name:
66
69
67
70
### ` klassi `
68
71
69
- type ** klass** and ** tab**
70
-
71
72
``` python
72
73
class class_name (super_class ):
73
74
@@ -78,9 +79,30 @@ class class_name(super_class):
78
79
79
80
### ` adef `
80
81
81
- type ** adef** and ** tab**
82
-
83
82
``` python
84
83
async def func_name (func_args ):
85
84
...
86
- ```
85
+ ```
86
+
87
+ ## Added v0.0.6
88
+
89
+ ### ` forr `
90
+
91
+ ``` python
92
+ for var in range (end):
93
+ pass
94
+ ```
95
+
96
+ ### ` afor `
97
+
98
+ ``` python
99
+ async for var in aiterables:
100
+ pass
101
+ ```
102
+
103
+ ### ` openw `
104
+
105
+ ``` python
106
+ with open (fpath, mode = " r" , encoding = " utf-8" ) as handler:
107
+ pass
108
+ ```
You can’t perform that action at this time.
0 commit comments