Visual Studio 2010 New features No-02-How to use the Navigate to window

Posted By  RRaveen On 17 May 2010 11:05:26
emailbookmarkadd commentsprint
No of Views:636
Bookmarked:0 times
Votes:0 times

Introduction

In 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 guide

Create simple console project with visual studio 2010. 

Image Loading

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. 

Image Loading

Now we have to enter the search method name like following figure, 

Image Loading

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.

Sign Up to vote for this article
Other popular Tips/Tricks
    In this tips, I'm going to explain how to do box selection in visual studio 2010.
    Published Date : 06/Aug/2011
    Microsoft Visual Studio 2010 is a great IDE and everyday I am discovering something new about it. Today I am also going to explain new feature of Visual Studio 2010. In this post I am going to Transact SQL Editor feature in Visual Studio 2010.
    Published Date : 06/Aug/2011
    In this tip we are going to see an new feature for multi monitor support in Visual Studio 2010. In Visual Studio 2010 you can drag windows outside IDE and thus you can use in different monitor
    Published Date : 22/Jan/2011
    Some time while you are testing you need to debug some things in your asp.net application
    Published Date : 11/Jun/2010
    There are times when you will want to share the same source code among several projects. A common way to do so is with a shared assembly; you put common functionality in one project and then share the output among several other projects.
    Published Date : 11/Jun/2010
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top