-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathyaml.code-snippets
More file actions
74 lines (74 loc) · 1.96 KB
/
yaml.code-snippets
File metadata and controls
74 lines (74 loc) · 1.96 KB
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
{
// Place your snippets for yaml here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Insert OpenFisca basic parameter": {
"prefix": "param",
"body": [
"description: ${1:Description}",
"values:",
" 2019-06-01:",
" value: ${2:0.00}",
"metadata:",
" unit: currency-GBP",
" reference: ${3:none}"
],
"description": "Insert a basic OpenFisca parameter."
},
"Insert OpenFisca parameter value with reference": {
"prefix": "refparam",
"body": [
"value: ${1:0.00}",
"reference:",
" - title: ${2:Title}",
" href: ${3:Link}",
],
"description": "Insert a basic OpenFisca parameter."
},
"Insert OpenFisca basic test": {
"prefix": "test",
"body": [
"- name: ${1:Name}",
" period: 2021",
" input:",
" ${3:variable values here}",
" output:",
" ${4:expected output here}"
],
"description": "Insert a basic OpenFisca parameter for one person."
},
"2019-2025 (millions) OpenFisca parameter": {
"prefix": "1926bn",
"body": [
"2019-01-01: ${1}_000_000",
"2020-01-01: ${2}_000_000",
"2021-01-01: ${3}_000_000",
"2022-01-01: ${4}_000_000",
"2023-01-01: ${5}_000_000",
"2024-01-01: ${6}_000_000",
"2025-01-01: ${7}_000_000",
]
},
"2019-2025 (thousands) OpenFisca parameter": {
"prefix": "1926mn",
"body": [
"2019-01-01: ${1}_000",
"2020-01-01: ${2}_000",
"2021-01-01: ${3}_000",
"2022-01-01: ${4}_000",
"2023-01-01: ${5}_000",
"2024-01-01: ${6}_000",
"2025-01-01: ${7}_000",
]
}
}