Import Type

Answered

If I paste a code snippet into another class and it contains a Type that isn't imported, I think that "Import Type" could be a little more intelligent.

See screenshot below where Import Type just gives an alphabetical list of Types called "ReflectionHelper":-

Wouldn't it be better if it checked if any of those suggested types had an existing member called ".GetNonPublicProperty" and, if so, either bring it to the top of the list or, even better, if there is only one, let it be used instantly?

 

0
1 comment

Simon Hewitt, thank you for your feedback! This is a good question, we will think about what can be done here: https://youtrack.jetbrains.com/issue/RSRP-482881. Please comment or vote for the ticket to be notified about status changes.

Have a great day!

0

Please sign in to leave a comment.