All Projects → stefanjarina → vscode-eex-snippets

stefanjarina / vscode-eex-snippets

Licence: MIT License
Elixir EEx and HTML (EEx) code snippets.

Projects that are alternatives of or similar to vscode-eex-snippets

graphql-codegen-vscode
vscode extension which runs graphql-codegen whenever you save a query/mutation
Stars: ✭ 41 (+78.26%)
Mutual labels:  vscode-extension
vscode-material-product-icons
Product Icon Theme with Material Icons for VS Code
Stars: ✭ 19 (-17.39%)
Mutual labels:  vscode-extension
vscode-phpserver
Visual Studio Code extension to quickly serve your PHP projects :)
Stars: ✭ 62 (+169.57%)
Mutual labels:  vscode-extension
todo-txt
Todo.txt syntax highlighter and helper extension for visual studio code.
Stars: ✭ 39 (+69.57%)
Mutual labels:  vscode-extension
componizer
vs code extension for refactoring to components
Stars: ✭ 31 (+34.78%)
Mutual labels:  vscode-extension
swdc-vscode-100-days-of-code
A VS Code extension that helps you reach your goals in completing the 100 Days of Code challenge
Stars: ✭ 45 (+95.65%)
Mutual labels:  vscode-extension
vscode-fzf-quick-open
vscode extension providing quick file/folder open and searching using fzf
Stars: ✭ 42 (+82.61%)
Mutual labels:  vscode-extension
vscode-sops
Just a simple integration of SOPS by Mozilla into VSCode IDE. It contains some advanced features over the original project which makes sense for IDE.
Stars: ✭ 25 (+8.7%)
Mutual labels:  vscode-extension
vscode-magento-wizard
Helps develop Magento 2 extensions using VSCode
Stars: ✭ 22 (-4.35%)
Mutual labels:  vscode-extension
vscode-mermaid-editor
Live editor and image creator for mermaid.js in Visual Studio Code
Stars: ✭ 23 (+0%)
Mutual labels:  vscode-extension
SmartContractTrading-wFabric1-4-VSCodeExt
Learn now to create a smart contract with VSCode
Stars: ✭ 27 (+17.39%)
Mutual labels:  vscode-extension
vscode-px-to-rem
Extension that allows you to convert from px to rem, and vice versa
Stars: ✭ 36 (+56.52%)
Mutual labels:  vscode-extension
vscode-php-sniffer
Visual Studio Code extension for PHP_Codesniffer validation and formatting.
Stars: ✭ 41 (+78.26%)
Mutual labels:  vscode-extension
theme-bluloco-light
A fancy but yet sophisticated light designer color scheme.
Stars: ✭ 73 (+217.39%)
Mutual labels:  vscode-extension
firecode
VS Code Firestore Rules Extension
Stars: ✭ 35 (+52.17%)
Mutual labels:  vscode-extension
revista
☂️ Reference Elixir umbrella project deployed to AWS ECS with Docker and Terraform.
Stars: ✭ 18 (-21.74%)
Mutual labels:  elixir-phoenix
inertia phoenix
Inertiajs Adapter for Elixir Phoenix
Stars: ✭ 60 (+160.87%)
Mutual labels:  elixir-phoenix
vscode-markdown-link-suggestions
Suggests workspace files and MarkDown file headers in MarkDown links
Stars: ✭ 15 (-34.78%)
Mutual labels:  vscode-extension
snippets
VSCode extension which lets you manage your code snippets without quitting your editor.
Stars: ✭ 55 (+139.13%)
Mutual labels:  vscode-extension
vscode-jump
🏃‍♂️ Jump/Select to the Start/End of a word in VSCode
Stars: ✭ 67 (+191.3%)
Mutual labels:  vscode-extension

EEx snippets

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

Enjoy!!!

Supported languages (file extensions)

  • EEx or eex (.eex)
  • HTML (EEx) or html-eex (.html.eex)
  • HEEx or phoenix-heex (.heex)
  • surface (.sface)

Snippets

Below is a list of all available snippets.

Basic

Trigger Content
e= render block <%= %>
ee
or e-
exec block <% %>
e# comment <%# %>
end end tag <% end %>
lt link <%= link "${1:text}", to: ${2:url} %>
ltb link block
<%= link to: ${1:url} do %>
    ${2:text}
<% end %>"
render render <%= render "${1:partial}.html", ${2:local_var: @local} %>

Control flow

Trigger Content
for for <%= for $1 <- $1 do %>
if if <%= if $1 do %>
ife if else <%= if $1 do %> <% else %>
cond cond <%= cond do %>
unless unless <%= unless $1 do %>

Forms

Trigger Content
ff form_for <%= form_for @${1:changeset}, ${2:url}, ${3:[]}, fn f -> %>
et form error <%= error_tag ${1:f}, :${2:field} %>
la form label <%= label ${1:f}, :${2:field}, "${3:Text}" %>
ti form text input <%= text_input ${1:f}, :${2:field} %>
pi form password input <%= password_input ${1:f}, :${2:field} %>
subm form submit <%= submit ${1:Text} %>
submc form submit with class <%= submit ${1:Text}, class: "${3:btn btn-primary}" %>

Release Notes

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

Known Issues

Not really an issue but I wanted the e=, e-, e# snippets to be just a =, -, #, but they didn't trigger on these special characters so had to prepend them with e letter.

Disclaimer

Graciously borrowed some of the snippets from the phoenix-elixir-snippets for Atom and refactored them to work with VS Code.

Contribution

git clone https://github.com/stefanjarina/vscode-eex-snippets

And copy the vscode-eex-snippets folder into the <user home>/.vscode/extensions folder. Restart Code.

License

MIT License

Copyright (c) 2017 Stefan jarina

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].