Unused Variables

  • Thread starter Thread starter Rob T
  • Start date Start date
R

Rob T

Is there a way to scan a project and find the variables that have been
declared but never used? I'm fixing someone else's code and it filled with
these things!

Thanks.
 
If you're using Visual Studio.Net, yes. It will tell you every time you
compile. It just won't alert you.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
It will tell you every time you compile.

I believe this applies only to C#.
For VB.NET you may need a 3rd party tool.

I hope this helps,
Steve C. Orr,
MCSD, MVP in ASP.NET
http://Steve.Orr.net
 
It should appear in the Task List. I must admit I don't use VB.Net very
often, but I believe it is there. Correct me, please, if I'm wrong.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
It doesn't show up in the task list, nor the Output window when you build
the project. Any other suggestions? I vaguely recall there being a menu
option in the old visual studio...but it's been a long time since I've
traveled that path.... (PS I am using VB)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top