I see that VS Code supports region/folding for some language e.g.
//#region My Region
some code
//#endregion
But dart is not supported. Am I doing something wrong or this will be added later?
This is not currently supported. As far as I'm aware, //#region is not a Dart construct so these are just treated as comments and won't generate foldable regions.
We implemented folding in the Dart Analysis Server in the SDK so that it can be re-used across editors so supporting this would have to come from the SDK, so this should be raised in the SDK repo.
ok thanks.
//#region and //#endregion work in the Android Studio and Intellij as well.
@angelopolotto Didn't work in VCode
@engmsaleh Don't work in VSCode, only Android Studio and Intellij.
Not the real solution for the problem, but for those just searching for a workaround:
https://marketplace.visualstudio.com/items?itemName=maptz.regionfolder
Its a Addon that works for many languages, including dart.
Not the real solution for the problem, but for those just searching for a workaround:
https://marketplace.visualstudio.com/items?itemName=maptz.regionfolder
Its a Addon that works for many languages, including dart.
It's a real solution for me :), works very well.
Most helpful comment
//#regionand//#endregionwork in the Android Studio and Intellij as well.