This extension for Visual Studio Code adds snippets for Liquid, YAML, grahpQL, marketplace-kit terminal. Supports Liquid Theme Tag.
Visual Studio Marketplace link: https://marketplace.visualstudio.com/items?itemName=digitalfuel.vscode-platformOS-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-platformOS-snippets - Reload Visual Studio Code
- Download zip
- From the command palette
Ctrl-Shift-P(Windows, Linux) orCmd-Shift-P(OSX) - Type
snippetsselectPreferences: Configure User Snippetsthen selectliquid.json (Liquid HTML)from the list - Copy and paste code from the zip in
/snippets/liquid.jsoninto your liquid user snippets
Go to user settings and add the following:
"emmet.includeLanguages": { "liquid": "html" },
"files.associations": {
"*.liquid": "liquid"
},
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.
Whitespace control is add for all snippets. And can be removed when needed by deleting the - inside liquid tags.
Install/Update
Test (show version)
Initialize
Add environment
List environments
Deploy
Deploy with force
Sync
GUIPage
Metadata
Response Headers
user_profile_types
transactable_types
order_types
custom_model_types
notifications email, SMS , API
authorization_policies
form_configurations
- default_payload
- validation
- translationscommentif
else
elsif
ifelse
unless
case
whencycle
cyclegroup
for
limit // For loops option
offset // For loops option
reversed // For loops option
break
continue
tablerowassign
increment
decrement
captureliquid
render
include // deprecated
includewith // Theme Tag {% include %} with parameters
includefor // Theme Tag {% include %} with parameters
rawjoin
first
last
concat
map
reverse
size
sort
uniqabs
ceil
divided_by
floor
minus
plus
round
times
moduloTo Comeappend
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_escapeSearch page contentForm Builder- platform-OS snippets - Use at your own risk
MIT
