I find the usings remove and sort ability to be highly useful, but does anyone know of a tool that will scan my code looking for unrecognized types, look through available namespaces, and offer me possible listings to use?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Visual Studio will do that with assemblies that your project has references to. Use a type whose namespace isn’t already included, but is available via the referenced assemblies. If you mouseover it, you’ll get a little popup in the bottom, left corner of the symbol. That will let you automatically pull in the appropriate using.
I use this all the time with the
CLSCompliantAttributeinAssemblyInfo.csb/cSystemisn’t available there by default. I also find myself pulling inSystem.Diagnosticsthis way pretty frequently when I find I need to add a trace to a bit of code.