vb.net Visual Studio 2015 导航栏消失

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33644839/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 19:32:57  来源:igfitidea点击:

Visual Studio 2015 Navigation Bar Disappears

vb.netvisual-studio-2015

提问by Marcus

I am having an issue in Visual Studio 2015 (VB.Net) where the Navigation Bar is not showing.

我在 Visual Studio 2015 (VB.Net) 中遇到导航栏未显示的问题。

I have set the settings in Tools > Options > Text Editor > All Languages and set the "Navigation Bar" setting to checked.

我已经在工具 > 选项 > 文本编辑器 > 所有语言中设置了设置,并将“导航栏”设置设置为选中。

The bar will show up for a second and then disappear.

该条将显示一秒钟,然后消失。

I have tried it in Safe Mode and still the same.

我在安全模式下试过了,还是一样。

I have tried editing the CurrentSettings.vssettings and it shows when you load but again it then disappears.

我曾尝试编辑 CurrentSettings.vssettings,它会在您加载时显示,但再次消失。

Any Thoughts?

有什么想法吗?

回答by wgvoight

Try this: uncheckthe checkbox in tools\options\text editor\all languages\general\navigation bar and click OK. This is unintuitive, but then--come back to the same checkbox, which should now be Unchecked, check it, and click OK. This has worked for me. Why the navigation bar disappears randomly is a mystery.

试试这个:取消选中工具\选项\文本编辑器\所有语言\常规\导航栏中的复选框,然后单击确定。这是不直观的,但是--回到相同的复选框,现在应该是未选中的,选中它,然后单击确定。这对我有用。为什么导航栏会随机消失是个谜。

回答by David Wilson

Try Clicking on the Build Menu > Clean Solution then click Build Menu > Rebuild Solution

尝试单击构建菜单 > 清理解决方案,然后单击构建菜单 > 重建解决方案

回答by Penny

for me such issue happens in the scenario that in one file the navigation bar disappeared but in other files it is still there. my solution is: 1) find the project that the missing navigation bar file located; 2) unload the project(in solution explorer->right click project name->in popup dialog, select unload project). Logically then the file will be closed and the project will be gray; 3) load the project again(in solution explorer->right click project name->in popup dialog, select load project). Then the navigation bar will appear again in this file. Such solution also help for Intelisense doesn't work for some files.

对我来说,这样的问题发生在一个文件中导航栏消失但在其他文件中它仍然存在的情况。我的解决方法是:1)找到丢失的导航栏文件所在的项目;2)卸载项目(在解决方案资源管理器中->右键单击项目名称->在弹出对话框中,选择卸载项目)。逻辑上然后文件将被关闭并且项目将是灰色的;3)再次加载项目(在解决方案资源管理器中->右键单击项目名称->在弹出对话框中,选择加载项目)。然后导航栏将再次出现在此文件中。这种解决方案也有助于 Intelisense 不适用于某些文件。