2

Is there a way to get VS Code to support folding blocks within Pug when used in Vue single-file components? That is:

<template lang="pug"
...
</template>
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219

1 Answers1

7

Based on this bug report the fact VS Code isn't doing this already seems to be do with using Vetur.

Adding this to settings.json fixed it:

    "[vue]": {
        "editor.foldingStrategy": "indentation",
    }
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219