This extension for Visual Studio Code adds snippets for Shopify Liquid Template.
Visual Studio Marketplace link: https://marketplace.visualstudio.com/items?itemName=killalau.vscode-liquid-snippets
- Install the latest Visual Studio Code
- Launch Code
- From the command palette
Ctrl
-Shift
-P
(Windows, Linux) orCmd
-Shift
-P
(OSX) - Type
ext install vscode-liquid-snippets
- Reload Visual Studio Code
Go to user settings and add the following:
"emmet.includeLanguages": { "liquid": "html" },
Type part of a snippet, press enter
, and the snippet unfolds.
Alternatively, press Ctrl
+Space
(Windows, Linux) or Cmd
+Space
(OSX) to activate snippets from within the editor.
comment- // whitespace stripped
if
else
elsif
ifelse
unless
case
when
if- // whitespace stripped
else- // whitespace stripped
elsif- // whitespace stripped
ifelse- // whitespace stripped
unless- // whitespace stripped
case- // whitespace stripped
when- // whitespace stripped
cycle
cyclegroup
for
limit // For loops option
offset // For loops option
reversed // For loops option
break
continue
tablerow
cycle- // whitespace stripped
cyclegroup- // whitespace stripped
for- // whitespace stripped
continue- // whitespace stripped
tablerow- // whitespace stripped
assign
increment
decrement
capture
assign- // whitespace stripped
capture- // whitespace stripped
include
includewith // Theme Tag {% include %} with parameters
render
renderwith // Theme Tag {% render %} with parameters
section
raw
layout
layoutnone
paginate
schema
stylesheet
stylesheet_scss
_schema
_text
_textarea
_image_picker
_radio
_select
_checkbox
_range
_color
_font
_collections
_product
_blog
_page
_link_list
_url
_video
_richtext
_html
_article
_header
_paragraph
_blocks
join
first
last
concat
map
reverse
size
sort
uniq
img_tag
img_tag_param // HTML Filter {% img_tag %} with parameters
script_tag
stylesheet_tag
abs
ceil
divided_by
floor
minus
plus
round
times
modulo
money
money_with_currency
money_without_trailing_zeros
money_without_currency
append
camelcase
captialize
downcase
escape
handleize
md5
newline_to_br
pluralize
prepend
remove
remove_first
replace
replace_first
slice
slice_single // String Filter 'slice' with single parameter
split
strip
lstrip
rstrip
strip_html
strip_newlines
truncate
truncatewords
upcase
url_encode
url_escape
url_param_escape
asset_url
asset_img_url
img_url
- Fix wrong spacing in schema blocks
- Fix missing colon in tag _color
- Fix typo for color picker in schema
- Add new schema tags: _schema, _text, _page, ...
- BREAKING: remove hard/auto dependency of the extension
- Add theme tags: render, renderwith
- Add theme tags: schema, stylesheet, stylesheet_scss,
- Update readme, step to enable Emmet
- Add whitespaced comment tag
- Add keep both tag for whitespace and non-whitespace control
- Add whitespace control
MIT