Skip to content

Instantly share code, notes, and snippets.

@aifrak
Last active November 30, 2024 20:14
Show Gist options
  • Select an option

  • Save aifrak/61799433b17597fe8b4cffa9ba510eba to your computer and use it in GitHub Desktop.

Select an option

Save aifrak/61799433b17597fe8b4cffa9ba510eba to your computer and use it in GitHub Desktop.
VSCode Phoenix LiveView snippets
{
"LiveView: ~p sigil": {
"scope": "elixir,phoenix-heex",
"body": [
"~p\"/$1\""
],
"description": "LiveView: ~p sigil",
"prefix": [
"~p"
]
},
"LiveView: render_slot/1": {
"scope": "elixir,phoenix-heex",
"body": [
"<%= render_slot(${1:@inner_block}) %>"
],
"description": "LiveView: render_slot/1",
"prefix": [
"<%= render_slot",
"render_slot"
]
},
"LiveView: render_slot/2": {
"scope": "elixir,phoenix-heex",
"body": [
"<%= render_slot(${1:@inner_block}, ${2:argument}) %>"
],
"description": "LiveView: render_slot/2",
"prefix": [
"<%= render_slot",
"render_slot"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment