Skip to content

Instantly share code, notes, and snippets.

@kellyfelkins
Created November 29, 2022 18:08
Show Gist options
  • Save kellyfelkins/9efb07e6af676cd9ca9be4b97663957d to your computer and use it in GitHub Desktop.
Save kellyfelkins/9efb07e6af676cd9ca9be4b97663957d to your computer and use it in GitHub Desktop.
useful snippets in vscode
{
"Print File Line": {
"prefix": "pfl",
"body": [
"IO.puts \"#{__ENV__.file}:#{__ENV__.line}\""
]
},
"Inspect Value": {
"prefix": "iiv",
"body": [
"IO.inspect(${1}, label: \"${1}\")$0"
]
},
"Inspect Pipe": {
"prefix": "iip",
"body": [
"|> IO.inspect()"
]
},
"atom list": {
"prefix": "wa",
"body": [
"~w{${1}}a"
]
},
"key:value": {
"prefix": "::",
"body": [
"$1: $1 $0"
]
},
"dump view": {
"prefix": "dv",
"body": [
"IO.puts \"=======================================\"\nview |> render() |> IO.puts \nIO.puts \"=======================================\""
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment