vscode-liquid
vscode-liquid copied to clipboard
Inserting a dash to the tag
Why is it when I save a liquid file in VS, it automatically inserting a dash to the liquid tag like this?
{%- unless event_item.status == 'live' %}{{ site.snippets.event_status[event_item.status] }}: {% endunless -%} {{- event_item.name -}}
Thanks
Hey @mtran21, this will be due to the formatting rule known delimiterTrims which you can disable by setting it preserve to prevent that behaviour from applying.