Pregunta

How can I disable automatic namespace resolution in Intellisense for C# (Visual Studio 2010)?

This might sound strange but I need to have the fully qualified names show up as follows:

System.Windows.Forms.Form form = new System.Windows.Forms.Form();

Instead of:

Form form = new Form();

I could not find similar questions. Is this possible in VS2010?

UPDATE: I am aware about readability issues and when sharing code, qualified can be stripped easily. It is just a matter of preference in writing code that way.

¿Fue útil?

Solución

By default the fully qualified names will show up if you start typing the namespaces.

So start by typing System, and you'll see a list of symbols in the System namespace. and you can continue on like that until you have System.Windows.Forms.Form

If you really really badly want intellisence to stop giving you stop resolving namespaces, than you can just delete all the using statements at the top of your file, and then paste them back in when you're done. I wouldn't do this if I were you, but then again, I wouldn't want to stop resolving namespaces either.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top