How would I retrieve the fully qualified name of an identifier in a VS macro?
I'm trying to resolve the fully qualified name of a c# identifier at a certain point (cursor) of a code window, using a Macro (or even an Add-in) in Visual Studio 2008. For example, if the cursor is in "Rectangle", I would like "System.Drawing.Rectangle" returned. I've tried FileCodeModel.CodeElements and .CodeElementFromPoint but they only retrieve the containing method or class (and others). If this can't be done using a macro or add-in (even though VS does know the information via intellisense), would it be possible to use Reflection read in the c# file and get the desired info? It can be