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

1
  • //#region and //#endregion work in the Android Studio and Intellij as well. Use those IDEs if you want to have code folding Commented May 8, 2021 at 15:48

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Yes , but it's weired that dart dont implement loops , if statements ... folding . those things are basics

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.