Created
November 29, 2022 18:08
-
-
Save kellyfelkins/9efb07e6af676cd9ca9be4b97663957d to your computer and use it in GitHub Desktop.
useful snippets in vscode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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