Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Liquid CommentsNew to Visual Studio Code? Get it now.
Liquid Comments

Liquid Comments

Chris Hayes

|
1,884 installs
| (0) | Free
When you use VSCode's <insert comment> shortcut, liquid files will use Liquid comments instead of HTML comments.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tell VSCode's Comment Shortcut to use Liquid Comments on .liquid files

Before

.liquid

<!-- {% if product.tags contains 'new' %} -->

After

.liquid

{%- comment -%} {% if product.tags contains 'new' %}  {%- endcomment -%}

Why?

Keep your .liquid file comments hidden from the client.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft