Is there a way to fold dart enums code blocks in VS Code?

Viewed 119

In Dart, an enum can occasionally be long:

enum LoremIpsum {
  dolor,
  sit,
  amet,
  consectetur,
  adipiscing,
  elit,
  sed,
  eiusmod,
  tempor,
  incididunt,
  ut,
  labore,
}

In VS Code I am unable to fold these enum code blocks (see below) when ever the file is saved as a .dart file. Otherwise, in unsaved (like Untitled-1 with the Dart language mode) documents I am am to fold those enum blocks.

enum LoremIpsum {...
}

How can I update the the setting in VS Code to allow code block folding for these enum cases?

1 Answers
Related