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 8a934f9 commit f774bceCopy full SHA for f774bce
snippets/elixir.json
@@ -14,6 +14,16 @@
14
"body": ["defp ${1:name}() do", " $0", "end"],
15
"description": "Define a private function"
16
},
17
+ "df": {
18
+ "prefix": "df",
19
+ "body": "def ${1:name}(), do: $0",
20
+ "description": "Define a one-liner function"
21
+ },
22
+ "dfw": {
23
+ "prefix": "dfw",
24
+ "body": "def ${1:name}(${2:args}) when ${3:guard}, do: $0",
25
+ "description": "Define a one-liner function with when guard"
26
27
"IO.puts": {
28
"prefix": "put",
29
"body": "IO.puts($0)"
0 commit comments