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
snippets
selectPreferences: Configure User Snippets
then selectliquid.json (Liquid HTML)
from the list - Copy and paste code from the zip in
/snippets/liquid.json
into 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
GUI
Page
Metadata
Response Headers
user_profile_types
transactable_types
order_types
custom_model_types
notifications email, SMS , API
authorization_policies
form_configurations
- default_payload
- validation
- translations
comment
if
else
elsif
ifelse
unless
case
when
cycle
cyclegroup
for
limit // For loops option
offset // For loops option
reversed // For loops option
break
continue
tablerow
assign
increment
decrement
capture
liquid
render
include // deprecated
includewith // Theme Tag {% include %} with parameters
includefor // Theme Tag {% include %} with parameters
raw
join
first
last
concat
map
reverse
size
sort
uniq
abs
ceil
divided_by
floor
minus
plus
round
times
modulo
To Come
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
Search page content
Form Builder
- platform-OS snippets - Use at your own risk
MIT