views:

319

answers:

5

I'm working in .Net 3.5sp1 in C# for an ASP.Net solution and I'm wondering if there's any way to turn on the Class Name and Method Name drop-downs in the text editor that VB.Net has at the top. It's one of the few things from VB that I actually miss.

Edit: Also, is there any way to get the drop downs to be populated with the possible events?

e.g. (Page Events) | (Declarations)

A: 

Well, I see them when I use C#, so clearly there must be. I was unaware that you could turn them off.

James Curran
+4  A: 

Go To:

Tools -> Options -> Text Editor -> C# -> General -> Navigation Bar

Make sure it is clicked, and that should show something at the top of your code that has all the classes and methods listed in your file.

casademora
hmm, now is there any way to list all the _possible_ events like vb.net?
travis
+1  A: 

In Visual Studio 2008 (and probably earlier versions):

Tools -> Options -> Text Editor -> C#(*) -> General -> Navigation bar

(*) or your preferred editor language

Michael Petrotta
A: 

note that the lists don't fill in until the cursor is within the namespace/class

Steven A. Lowe
+1  A: 

Try

[Tools]->[Options]->[Text Editor]->[C#]->[General]->[Check "Navigation Bar]

JTA