Let’s say I want to do Debug.Writeline(...)
, and System.Diagnostics
isn’t imported. I usually type out “Debug”, hit Ctrl+Space, and intellisense would bring up a list of options. The correct option is the first one, which would automatically add the import for me, but the highlighted option is ALWAYS the second one which is a namespace:
Half the time, I have a completion that doesn’t match one of my namespaces, and it highlights the right item. Half the time, it highlights a namespace, and I end up hitting tab and having to undo it, which is exceedingly annoying. Why does it think (or not) that a namespace called “Debugging” is a better fit than the actual class “Debug”, which matches the incomplete code I’ve entered char by char? I don’t recall seeing this behavior just a few years ago.