skip to Main Content

In VS Code if I save my liquid file every time it adds an extra "}" on the end. I have disabled all other extensions.

Basically, my code looks like this in the end:

{% schema  %}
    {}
{% endschema %}}}}}}}}}

My settings are as follows for user:

{
"terminal.integrated.env.osx": {
"FIG_NEW_SESSION": "1"
},
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.accessibilitySupport": "off",
"[liquid]": {
"editor.bracketPairColorization.enabled": true,
"editor.defaultFormatter": "sissel.shopify-liquid",
"editor.formatOnSave": true,
"liquid.format.enable": true
},
"liquid.format.enable": true,
"editor.formatOnPaste": true,
"explorer.confirmDelete": false,
"files.associations": {
"*.liquid": "liquid"
},
"workbench.colorTheme": "Dracula Soft"
}

and workspace:

{
"liquid.format.enable": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.accessibilitySupport": "off",
"[liquid]": {
"editor.bracketPairColorization.enabled": true,
"editor.defaultFormatter": "sissel.shopify-liquid",
"editor.formatOnSave": true,
"liquid.format.enable": true
},
"editor.formatOnPaste": true,
"explorer.confirmDelete": false,
"files.associations": {
"*.liquid": "liquid"
}
}

2

Answers


  1. In settings.json file, include the following:

    "[liquid]": {
       "editor.autoClosingBrackets": "never"
    }
    
    Login or Signup to reply.
  2. This issue was addressed in the latest release of the extension. See https://github.com/panoply/vscode-liquid/issues/120

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search