2

I'm trying to make a code folding for the "for loop" and for "if statement " in flutter with vs code but i can't .however the code folding works well if i try to fold the hole class or the body of a method...

is that a bug in Dart or i have something wrong with my config

code folding isn't working here to fold if statement:

code folding isn't working here

code folding works here to fold a method : enter image description here

Khalil LAABOUDI
  • 244
  • 1
  • 2
  • 12
  • //#region and //#endregion work in the Android Studio and Intellij as well. Use those IDEs if you want to have code folding – Praharsh Bhatt May 08 '21 at 15:48

1 Answers1

1

Apparently, folding is done by dart and not vscode, and is supposed to be this way since version 2.13. Source: https://dartcode.org/releases/v2-13/#improved-folding

Nocturnes
  • 11
  • 1
  • 3