forked from hoffmann/PyCharm-Python-Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.xml
124 lines (123 loc) · 6.55 KB
/
user.xml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="user">
<template name="class" value="class $class$($object$): """$cls_doc$""" def __init__(self, $args$): """Constructor for $class$""" $END$ " description="Python Class Template" toReformat="false" toShortenFQNames="true">
<variable name="class" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="object" expression="" defaultValue="object" alwaysStopAt="true" />
<variable name="cls_doc" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="init" value="def __init__(self, $args$): """$doc$""" $END$ " description="init function" toReformat="false" toShortenFQNames="true">
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="doc" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="def" value="def $fnname$($args$): """$docstring$ Args: $args$ Returns: $return_value$ """ $END$" description="function definition" toReformat="false" toShortenFQNames="true">
<variable name="fnname" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="docstring" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="return_value" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="se" value="self.$var$ = $var$ $END$" description="set instance variable" toReformat="false" toShortenFQNames="true">
<variable name="var" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="from" value="from $module$ import $name$ $END$" description="from module import name" toReformat="false" toShortenFQNames="true">
<variable name="module" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="name" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="pf" value="print "$string$".format($args$) $END$" description="print formatted string" toReformat="false" toShortenFQNames="true">
<variable name="string" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="prop" value="$property$ = property(get_$property$, set_$property$) $END$" description="property" toReformat="false" toShortenFQNames="true">
<variable name="property" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="main" value="def main(argv): if argv is None: argv = sys.argv $END$ if __name__ == "__main__": main()" description="if __name__ == "__main__":" toReformat="false" toShortenFQNames="true">
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="Python" value="true" />
<option name="Django" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
</templateSet>