I typically code in VB.NET, but I'm going through a tutorial in C# .NET right now. I'm expecting to see a drop down list for selecting methods and properties at the top of the code file, right underneath the tabs for the code files I have open. However, I do not see these. If I open VB code, it works just fine. I've tried to look for an option in Visual Studio that I don't have turned on, but I can't find what I'm missing. Anybody have any ideas?
我通常使用VB.NET编写代码,但我现在正在阅读C#.NET中的教程。我希望看到一个下拉列表,用于选择代码文件顶部的方法和属性,就在我打开的代码文件的选项卡下面。但是,我没有看到这些。如果我打开VB代码,它工作得很好。我试图在Visual Studio中寻找一个我没有打开过的选项,但我找不到我所缺少的内容。有人有什么想法吗?
4 个解决方案
#1
Go to Tools->Options->Text Editor->C#->General and check "Navigation Bar"
转到工具 - >选项 - >文本编辑器 - > C# - >常规并选中“导航栏”
#2
If you want to access the events, you can do it on design mode on upper border of the properties box, there is a "thunder" where you can access them, this part is different from that of VBasic
如果你想访问事件,你可以在属性框的上边框设计模式下进行,有一个“雷声”,你可以访问它们,这部分不同于VBasic
#3
Tools Menu --> Options
工具菜单 - >选项
Text Editor ---> C# ----> General ----> Navigation Bar (check this box)
文本编辑器---> C#---->常规---->导航栏(选中此框)
#4
Reset your entire environment. Tools--> Import and Export Settings... from this dialog you can reset your IDE settings, choosing to Reset all environment settings to one of the default collections of settings. (VB Developer, C# Developer, Web Developer, Project Manager...)
重置整个环境。工具 - >导入和导出设置...在此对话框中,您可以重置IDE设置,选择将所有环境设置重置为默认的一组设置。 (VB Developer,C#Developer,Web Developer,Project Manager ......)
#1
Go to Tools->Options->Text Editor->C#->General and check "Navigation Bar"
转到工具 - >选项 - >文本编辑器 - > C# - >常规并选中“导航栏”
#2
If you want to access the events, you can do it on design mode on upper border of the properties box, there is a "thunder" where you can access them, this part is different from that of VBasic
如果你想访问事件,你可以在属性框的上边框设计模式下进行,有一个“雷声”,你可以访问它们,这部分不同于VBasic
#3
Tools Menu --> Options
工具菜单 - >选项
Text Editor ---> C# ----> General ----> Navigation Bar (check this box)
文本编辑器---> C#---->常规---->导航栏(选中此框)
#4
Reset your entire environment. Tools--> Import and Export Settings... from this dialog you can reset your IDE settings, choosing to Reset all environment settings to one of the default collections of settings. (VB Developer, C# Developer, Web Developer, Project Manager...)
重置整个环境。工具 - >导入和导出设置...在此对话框中,您可以重置IDE设置,选择将所有环境设置重置为默认的一组设置。 (VB Developer,C#Developer,Web Developer,Project Manager ......)