vscode-liquid icon indicating copy to clipboard operation
vscode-liquid copied to clipboard

Inserting a dash to the tag

Open mtran21 opened this issue 11 months ago • 1 comments

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

mtran21 avatar Jan 29 '25 18:01 mtran21

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.

panoply avatar Jan 29 '25 18:01 panoply