Skip to content

Change the priority for "Create class/method/function" quick-fixes based on if the hovered symbol is TitleCase or camelCase #60523

@rrousselGit

Description

@rrousselGit

Consider:

someExample();

Currently, if we place the cursor on this identifier, the quick-fixes will be in order:

  • Create a class
  • Create a method
  • Create a function

The thing is, based on naming conventions, it's fairly obvious that what we want here is not a class, but either a function or method.
Similarly, given SomeExample(), it's obvious that in this scenario we want a class.


Could we bump the priority of quick-fixes based on the casing of missing identifiers?

Such that on Example(), "create a class" is first. But on example() then method/function fixes are first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions