This extension contains code snippets for Ash Framework .eex
, .html.eex
, .heex
and .sface
files for VS Code editor.
Enjoy!!!
Below is a list of all available snippets.
Trigger | NAME | DESCRIPTION |
---|---|---|
aintpk |
Ash int PK | integer_primary_key :${1:name} |
aatr |
Ash attribute | attribute :${1:name}, :${2:string} |
aatrs |
Ash Attributes | attributes do ${1} end |
auuid |
Ash uuid PK | uuid_primary_key :${1:name} |
arel |
Ash relationships | relationships do ${1} end |
aho |
Ash has one | has_one :${1:name}, ${2:Resource} |
arespg |
Ash Resource with Postgres | defmodule ${1:Module} do use Ash.Resource, data_layer: ${3:AshPostgres.DataLayer} end |
apg |
Ash postgres | postgres do table "${1:table}" repo ${2:Project}.Repo end |
ares |
Ash Resource | defmodule ${1:Module} do use Ash.Resource $2 end |
aact |
Ash Actions | actions do ${1} end |
Please read the CHANGELOG to see what has changed in this extension over time.
git clone https://github.com/martinhrvn/vscode-ash-framework-snippets
And copy the vscode-ash-framweork-snippets
folder into the <user home>/.vscode/extensions
folder. Restart Code.
MIT License