79312481

Date: 2024-12-27 17:55:15
Score: 0.5
Natty:
Report link

Based on one of the comments, I found a usable way to fold generated files under the original .dart file in Jetbrains (e.g. Intellij Idea).

  1. In your Project view, select the "Options" vertical '...' icon. Project View header
  2. In the dropdown, select "Appearance", then "File Nesting..." Menu item preview
  3. Under the relevant file type (e.g. '.dart'), add associated generated or "child" file extensions to the list. For example, .g.dart for riverpod or .freezed.dart for freezed. Save / accept your changes. enter image description here
  4. Your files should now be nested correctly enter image description here
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Clay H