Deprecation Notice
This extension with be merging with the official PlatformOS extension for vscode over the coming months. The new extension can be found here https://marketplace.visualstudio.com/items?itemName=platformOS.platformos-check-vscode
The idea is to deprecate this extension and have one official platformOS extension to avoid confusion. Before doing this, the Platform-OS team would like to understand who's using this extension and what features should be transferred into the new one before moving forward with the deprecation.
If you have any requests for features to be transferred please go to the new extension here https://marketplace.visualstudio.com/items?itemName=platformOS.platformos-check-vscode and make a request.
This extension adds:
- Liquid markup Syntax Highlighting and supports Liquid Theme Tag
- Snippets for Liquid, YAML, grahpQL & marketplace-kit terminal.
Visual Studio Marketplace link: https://marketplace.visualstudio.com/items?itemName=platformOS.platformos-check-vscode
Requirements
- Install the latest Visual Studio Code
This extension is available for free in the Visual Studio Code Marketplace
Installation
- Launch VS Code
- From the command palette
Ctrl
-Shift
-X
(Windows, Linux) or Cmd
-Shift
-X
(OSX)
- Search
platformOS
- Click to install
- Configure File Association for '.liquid' to
HTML pos-liquid
from the Change Language Mode (Ctrl+K M)
, when a .liquid
file is in focus.
Emmet Enable
Go to user settings and add the following:
"emmet.includeLanguages": { "liquid": "html" },
"files.associations": {
"*.liquid": "liquid"
},
Usage
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.
Tip
Using Tab
and disabling Enter
for accepting suggestions can avoid ambiguity between inserting new lines or accepting the suggestions.
Settings "editor.acceptSuggestionOnEnter": "off"
Liquid
Whitespace control is add for all snippets. And can be removed when needed by deleting the - inside liquid tags.
Terminal ( ?: )
Marketplace-kit
Install/Update
Test (show version)
Initialize
Add environment
List environments
Deploy
Deploy with force
Sync
GUI
YAML ( ---: )
Preferences
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
Liquid ( {%:, {{:, |:, %: )
comment
Control Flow Tag
if
else
elsif
ifelse
unless
case
when
Iteration Tag
cycle
cyclegroup
for
limit // For loops option
offset // For loops option
reversed // For loops option
break
continue
tablerow
Variable Tag
assign
increment
decrement
capture
Theme Tag
liquid
render
include // deprecated
includewith // Theme Tag {% include %} with parameters
includefor // Theme Tag {% include %} with parameters
raw
Array Filter
join
first
last
concat
map
reverse
size
sort
uniq
Math Filter
abs
ceil
divided_by
floor
minus
plus
round
times
modulo
Money Filter
To Come
String Filter
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
GraphQL ( gql )
Example snippets
Search page content
Console.log ( clog )
Example snippets
Form Builder
Release
0.0.10
License
MIT