Is there a way to copy the full type name of a class/interface/etc. in Visual Studio to the clipboard? In particular, I need them for Castle Windsor configuration and would love to figure out how to do this effortlessly. (Example: highlight IInterface in the code editor and end up with My.Full.Namespace.Is.Here.IInterface on the clipboard.)
VS puts the full type name in a read-only combobox in the upper left (which is utterly useless for copying purposes); does anyone know a way?
(I have ReSharper, if there’s a way to do it using that.)
Here’s a macro which does which should get you going. The error handling is abysmal but I couldn’t muster more, I absolutely hate VB 🙂
Also note that it only captures a class type name or interface type name, you can run it where ever you want while your cursor is inside a class or interface definition. It will capture the name of the class/interface scope.
It runs the Clipboard call in a thread, because it’s a Windows Forms component and they need to run in a STAThread.
It copies the full typename to the clipboard.