Is it possible to open the class code file instead of the object browser when I click on "go to definition"?
Asked
Active
Viewed 2,157 times
2 Answers
2
Just right click on the file in solution explorer and hit view code.
UPDATE:
You might want to check out this question Visual Studio Go to Definition (F12) opens Object Browser instead of Code View

Community
- 1
- 1

Alexis Reyes
- 189
- 1
- 1
- 7
-
Hi. Thanks for replying but I would like to use the F12 key which stands for "go to definition". – Apr 26 '13 at 13:56
1
If you have added the source code as a part of your solution, this should happen automatically. The object browser seems to open instead when the source code of the class cannot be found by your project (say you've added a reference to the other project via dll only).
If the classes you want to open are Microsoft code you can enable .NET framework source debugging

Michael
- 1,849
- 18
- 38
-
Hi Michael, I guess you and @elReyAlexis are both right. Unfortunately, I'm a .NET beginner, I don't know how to add the reference properly and my team mate is not available for now. I have to wait until next week. Thanks anyway. – Apr 26 '13 at 15:09