Import support for static classes
Hi,
when working with classes, the IntelliSense is better than in VS, like I see the classnames although the namespace is not imported yet. I wish I could use the same thing with static classes or import the namespace when writing the static class!
Currently I often use static methods which can be used in a functional way because it's convenient and looks pretty neat.
But I always have to manually import the namespace (it feels like back in 7. grade :D )
Could you please improve "import namespace for static classes"?
Please sign in to leave a comment.
Hi,
Can you share an example, please?
Sure.
Imagine I got a static class with static method. As you can see, the method is not recognized there.
It would be nice if Rider would pick up the static method "Analyze" and suggest to import the static class "AnalyzeFunctions", so it ends up like this
You can see the static import at the top.
Thank you.
Unfortunately, this is not supported yet. There is an issue on ReSharper's tracker: https://youtrack.jetbrains.com/issue/RSRP-467793. Feel free to upvote.
Sofia.