Skip to content

The codefix offering other candidates for wrongly-written identifiers should consider permutations of camelCaseParts #80902

@AdmiralSnyder

Description

@AdmiralSnyder

Today I ran into the issue that i wanted to check the IsParameterModified() method of a custom type, but had misremembered its name and thus typed obj.ParameterIsModified() instead.
which got squiggled, and so i thought that my memory was playing tricks on me and i hadn't written that thing yet and hit ctrl-dot to create that method.
when I F12ed into the file, then, to write the implementation, i saw (because the file wasn't too big) that the IsParameterModified() method was already there, so i just deleted that new method stub and fixed the identifier.

I think if the Ctrl-Dot experience that facilitates fixing mistyped identifiers by doing a fuzzy search would offer methods that fit permutations of the camelCaseParts of the word, it would reduce quite a lot of hassle, potentially.

I was asked, over on discord, to file this idea so it can be considered - it didn't match any other issue template, so please excuse me if i chose the wrong one.

Thank you :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions