如何防止 Visual Studio 2012 自动关闭预览文件? [英] How do you prevent Visual Studio 2012 from automatically closing preview files?

查看:29
本文介绍了如何防止 Visual Studio 2012 自动关闭预览文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2012 似乎有一个新功能,可以区分已显式打开进行编辑的文件和已导航到的文件(这些预览"文件默认位于顶部文件选项卡的右侧)环境并具有默认的紫色选项卡颜色).

Visual Studio 2012 appears to have a new feature that distinguishes between files that have been explicitly opened for editing and files that have been navigated to (these "preview" files default to the right side of the file tabs on the top of the environment and have a default tab color of purple).

虽然可以通过单击选项卡中的保持打开"按钮来保持预览文件处于打开状态,但我发现自己正在寻找我希望打开但在没有我直接输入的情况下被 Visual Studio 关闭的文件.

While it is possible to keep a preview file open by clicking on the "Keep Open" button in the tab, I find myself looking for files that I expect to be open, but have been closed by Visual Studio without my direct input.

是否有可以自动将预览文件转换为打开文件的设置(即完全跳过预览模式)?

Is there a setting available that automatically converts preview files to open files (i.e. just skips the preview mode entirely)?

推荐答案

您可以关闭预览选项卡,转到工具/选项/环境/选项卡和 Windows 并取消选中允许在预览选项卡中打开新文件",例如在下面的屏幕截图中:

You can turn off Preview Tab, go to Tools / Options / Environment / Tabs And Windows and uncheck "Allow new files to be opened in preview tab", like in screenshot below :

这篇关于如何防止 Visual Studio 2012 自动关闭预览文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆