You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convention in dart is that classes are PascalCase (new MyFoo()) and their corresponding file is snake_case (my_foo.dart), currently it's not possible to do with with the plugin.
It would be nice if there as some method to enable this, maybe a checkbox "Save class files as snake case"?
The text was updated successfully, but these errors were encountered:
esDotDev
changed the title
Allow generated files and glasses to follow standard Dart conventions
Allow generated files and classes to follow standard Dart conventions
Apr 21, 2021
Needs a bit more testing, but it should be fairly robust:
input --> class name --> file name
"my class" --> MyClass --> my_class.dart
"UITester" --> UITester --> ui_tester.dart
"my-view!" --> MyView --> my_view.dart
It's enabled via a new "Normalize Names" setting, which will default to false for previously opened files, and true for new files.
Convention in dart is that classes are PascalCase (
new MyFoo()
) and their corresponding file is snake_case (my_foo.dart
), currently it's not possible to do with with the plugin.It would be nice if there as some method to enable this, maybe a checkbox "Save class files as snake case"?
The text was updated successfully, but these errors were encountered: