Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Ash Framework SnippetsNew to Visual Studio Code? Get it now.
Ash Framework Snippets

Ash Framework Snippets

martinhrvn

|
204 installs
| (0) | Free
Snippets for Ash Framework
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ash Framework snippets

This extension contains code snippets for Ash Framework .eex, .html.eex, .heex and .sface files for VS Code editor.

Enjoy!!!

Snippets

Below is a list of all available snippets.

Basic

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

Release Notes

Please read the CHANGELOG to see what has changed in this extension over time.

Contribution

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.

License

MIT License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft