本文翻译自:Disable file preview in VS2012
In VS2012 when you select a file in solution explorer it automatically opens file in a special "preview" tab. 在VS2012中,当您在解决方案资源管理器中选择文件时,它会自动在特殊的“预览”选项卡中打开文件。
Maybe my computer is not fast enough, but this preview is too slow for my taste. 也许我的电脑速度不够快,但这个预览对我来说太慢了。
How do I disable this feature? 如何禁用此功能?
#1楼
参考:https://stackoom.com/question/jxA9/禁用VS-中的文件预览
#2楼
In Tools > Options > Environment > Tabs and Windows, you can disable it by unckecking "Solution explorer" under Preview tab. 在工具>选项>环境>选项卡和Windows中,您可以通过取消预览选项卡下的“解决方案资源管理器”来禁用它。
I find it using the "Quick launch" new feature. 我发现它使用“快速启动”新功能。 Simply type "preview", and a link to the setting will be suggested. 只需输入“预览”,即可建议指向该设置的链接。 Great new feature of VS VS的伟大新功能
#3楼
解决方案资源管理器顶部的其中一个按钮可以切换是否已启用此按钮。
#4楼
You can also toggle file preview within the Solution Explorer tool-window itself: 您还可以在解决方案资源管理器工具窗口本身内切换文件预览:
This may have been added in the July update because I hadn't noticed it before then. 这可能是在7月更新中添加的,因为我之前没有注意到它。
#5楼
On Visual Studio 2013 I have done this by this Icon : 在Visual Studio 2013上,我通过此Icon完成了此操作:
#6楼
An even better solution IMO is to completely disable the File Preview feature (not just for Solution Explorer): 更好的解决方案IMO是完全禁用文件预览功能 (不仅适用于解决方案资源管理器):
Tools > Options > Environment > Tabs and Windows
> Uncheck "Allow new files to be opened in the preview tab"
This also prevents things like Go To Definition (F12) from using preview tabs. 这也可以防止Go To Definition(F12)等内容使用预览选项卡。