gmlewis / flutter-stylizer

Flutter Stylizer is a VSCode extension that organizes your Flutter classes and mixins in an opinionated and consistent manner.
https://marketplace.visualstudio.com/items?itemName=gmlewis-vscode.flutter-stylizer
Apache License 2.0
23 stars 3 forks source link

Sort Private classes before/after public classes in file #41

Open mrgnhnt96 opened 1 year ago

mrgnhnt96 commented 1 year ago

Is your feature request related to a problem? Please describe. When I organize files that contain multiple classes, it would be nice to sort the classes based on if they're private (just like how the private methods/variables do)

Describe the solution you'd like I think an array of elementOrdering, similar to memberOrdering, could be a possible solution

"flutterStylizer": {
  "elementOrdering": [
      "private-classes",
      "public-classes",
    ],
}
gmlewis commented 1 year ago

Thank you, @mrgnhnt96 - interesting idea... thanks for the suggestion. Let's see if there is more interest in this feature.