STUDY MEMO

学習のメモ書き

<VSCode> erbファイルでsnippetを使用する際のトリガー一覧メモ

snippetとは

スニペットとは、一般的には「切れ端」「断片」という意味の英語である。IT用語としては、プログラミング言語の中で簡単に切り貼りして再利用できる部分のこと、または、検索エンジンによる検索結果の一部として表示される、Webページの要約文のことである。 https://www.weblio.jp/content/コードスニペット

一覧

トリガー snippets
pe <%= %>
pc <%# %>
if <% if %>...<% end %>
ife <% if %>...<% else %>...<% end %>
else <% else %>
elsif <% elsif %>
unless <% unless %>...<% end %>
end <% end %>
it <%= image_tag ..., ... %>
st <%= submit_tag ..., ... %>
tft <%= text_field_tag ..., ... %>
pft <%= password_field_tag ..., ... %>
lblt <%= label_tag ..., ... %>
lt <%= link_to ..., ... %>
each `<% @things.each do
ff `<%= form_for(@ ) do
t <%= t('@') %>

使用したVSCode拡張機能

ERB-VSCode-Snippets - Visual Studio Marketplace

github

GitHub - matthewrobertson/ERB-Sublime-Snippets: A collection of sublime text snippets useful for coding ERB templates