IntroductionIn this tips, i'm going to share with you, how to use the navigate to window in visual studio 2010.First we would know why this windows is introduce by VS team.navigate window help to us find the methods and properties inside the a solutions. Steps by steps guideCreate simple console project with visual studio 2010. Now add two method inside the Program.cs, like following, using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VS2010Navigate
{
class Program
{
static void Main(string[] args)
{
}
private static void HelpToPrint()
{
for (int i = 0; i < 1000; i++)
{
Console.WriteLine(i.ToString()+"-help ask by user");
}
}
private static void PrintNo()
{
for (int i = 0; i < 1000; i++)
{
Console.WriteLine(i.ToString());
}
}
}
}
Just two simple method added in Program.cs class. When you have few no of classes and methods you can easilly find methods. but when you are have huge amount of classess and methods. hard to find methods manully. so navigate window to help us on that time. now i'm going to use that to find my first method.to open Navigate to Windo you can use the CTRL+, or Edit--> Navigate To ways. I have used CTRL+, now Navigate to windows is opened. Now we have to enter the search method name like following figure, In above figure, i used to search Help pharse to find out my HelpToPrint method.if you are take look closelly result of the search, it will dispay the Project Name,Source file and Line no of the method present in code. and see the left hand corner of the above figure a checkBox called "hide external items", its we able to add external files and do the search in that files as well. I hope this new features is cool for all developers.enjoy the visual studio 2010. |