在 Visual Studio 2008 中查看多个活动文件
2005 年,当我双击一个文件(无论是标题还是源代码)时,它会在新选项卡中打开。因此,如果我双击一个头文件,然后双击两个源文件,则会出现三个选项卡:每个文件一个。活动文件列表包括这三个文件。
我刚刚安装了 VS 2008,并且一直在尝试启用相同的行为,但我在任何地方都找不到该选项。当我打开解决方案时,第一个头文件将打开。然后,当我尝试单击其他源文件时,它们会替换该选项卡。而且,我的活动文件列表仅包含一个文件:我最近单击的文件。
如何启用多个选项卡/活动文件?
In 2005, when I double-clicked on a file (be it header or source), it would open in a new tab. So, if I double-clicked on a header file and then two source files, there would be three tabs: one for each file. And the list of active files includes these three files.
I just installed VS 2008, and I've been trying to enable the same behavior, but I can't find the option anywhere. When I open my solution, the first header file opens up. Then when I try to click on the other source files, they replace that tab. And, my list of active files only contains one file: the most recent one I clicked on.
How do I enable multiple tabs/active files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
转到工具 -->选项 -->环境-->文档
取消选中“重用当前文档窗口”
go to tools --> options --> environment --> documents
uncheck "reuse current document window"
这绝对不是 VS 2008 中的默认行为。我尝试复制您的问题,并得到了可能的结果。在工具>选项>文档,有一个选项“如果保存则重新使用当前文档窗口”。默认情况下它是未选中的,如果您选择它,您会得到类似于您所描述的内容。
This is definitely not the default behavior in VS 2008. I tried to replicate your problem, and got something which might be it. In Tools > Options > Documents, there is an option, "Reuse current document window if saved". It is unselected by default, if you select it you get something like what you are describing.