如何在 Visual Studio 2015 中启用 TypeScript 文件的预览面板?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30019323/
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-10-21 02:59:57  来源:igfitidea点击:

How do I enable the preview panel for TypeScript files in Visual Studio 2015?

visual-studiotypescriptvisual-studio-2015

提问by Orion Adrian

I miss the feature that would show you the results of your TypeScript compile in a separate panel. I haven't found a way to turn that back on in Visual Studio 2015 with TypeScript 1.5 beta.

我想念可以在单独的面板中向您显示 TypeScript 编译结果的功能。我还没有找到在 Visual Studio 2015 中使用 TypeScript 1.5 beta 重新打开它的方法。

I have WebEssentials for 2015 installed as well as ReSharper 9.1.

我安装了 2015 年的 WebEssentials 以及 ReSharper 9.1。

Anyone have any luck with this?

有没有人有这方面的运气?

回答by Elan Hasson

This has been removed from Web Essentials 2015 in VS 2015RC.

这已从 VS 2015RC 中的 Web Essentials 2015 中删除。

See: https://github.com/madskristensen/WebEssentials2015/issues/53

参见:https: //github.com/madskristensen/WebEssentials2015/issues/53

madskristensen commented on Jun 8

The TS preview pane has been removed from Web Essentials 2015 due to continuously running into conflicts with the TS compiler when new versions come out. The TS team are aware of it and I hope they will add the feature into the TS tooling in the future. It is possible that this feature will be included in the brand new Web Compiler extensions (https://visualstudiogallery.msdn.microsoft.com/3b329021-cd7a-4a01-86fc-714c2d05bb6c) when preview panes have been implemented.

madskristensen 于 6 月 8 日发表评论

TS 预览窗格已从 Web Essentials 2015 中删除,因为在新版本发布时不断遇到与 TS 编译器的冲突。TS 团队已经意识到这一点,我希望他们将来会将该功能添加到 TS 工具中。实施预览窗格后,此功能可能会包含在全新的 Web 编译器扩展 ( https://visualstudiogallery.msdn.microsoft.com/3b329021-cd7a-4a01-86fc-714c2d05bb6c) 中。

回答by Stefan Schneider

Alternatively, you can hit the "Show All Files" Button in the Solution Explorer to find your .jsfile and then hit Alt+W, Vto get a vertical split window and open the .jsfile right next to your .tsfile.

或者,您可以点击解决方案资源管理器中的“显示所有文件”按钮来找到您的.js文件,然后点击Alt+ WV以获得垂直拆分窗口并在.js您的.ts文件旁边打开文件。

回答by user3785010

This issue still exists as of 2015-07-30 using the officially released version of Visual Studio 2015 Enterprise Edition plus Web Essentials 2015 version 0.5.1.

使用正式发布的 Visual Studio 2015 企业版和 Web Essentials 2015 0.5.1 版,该问题在 2015 年 7 月 30 日仍然存在。

None of the previous suggestions work.

以前的建议都不起作用。

Mads needs to fix this and release a new version.

Mads 需要修复此问题并发布新版本。

P.S. This issue does not happen with VS 2013 Update 4 and the latest Web Essentials 2013.

PS VS 2013 Update 4 和最新的 Web Essentials 2013 不会发生此问题。