用于 WSF 和 WSC 文件的 Visual Studio 加载项

发布于 2024-10-05 03:48:50 字数 389 浏览 1 评论 0原文

Visual Studio 是否有任何插件可以帮助编辑 WSF 和 WSC 文件?

WSF 和 WSC(Windows 脚本组件)文件是由 WIndows 脚本宿主解释的 XML 文件。它们包含 XML 元素中的脚本元数据以及 CDATA 块中的一个或多个脚本。

Sapien PrimalScript 在处理这些文件方面做得很好,并将它们显示为“工作区”(或 VS 术语中的“解决方案”),并显示嵌入式脚本,并且可以单独编辑语法突出显示、基本智能感知等

。在 VS 中打开这些文件,它仅显示为 XML 文件。

Visual Studio 是否有一个插件可以做更多类似于 PrimalScript 的事情?如果必须的话我可以使用 PrimalScript,但如果可以的话我宁愿不安装单独的工具。

Are there any add-ins for Visual Studio that assist with editing WSF and WSC files?

WSF and WSC (Windows Script Component) files are XML files that are interpreted by the WIndows Script Host. They contain script metadata in XML elements, and one or more scripts in CDATA blocks.

Sapien PrimalScript does a great job of handling these files, and displays them as a "workspace" (or a "Solution" in VS parlance) with the embedded scripts shown, and editable, separately with syntax highlighting, basic intellisense, etc.

When I open these files in VS it just displays as an XML file.

Is there an add-in for Visual Studio that will do more like what PrimalScript does? I can use PrimalScript if I have to, but I'd rather not install a separate tool if I can help it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

亚希 2024-10-12 03:48:51

根据此评论,我在VS2010中添加了WSC作为文件扩展名>工具>选项>文本编辑器>文件扩展名,并将编辑器设置为 HTML 编辑器。

这使我能够让 Intellisense 处理 WSC 文件 CDATA 部分中的任何内容。

From this comment, I added WSC as a file extension in VS2010 > Tools > Options > Text Editor > File Extension, and set the editor to be HTML Editor.

This allowed me to have Intellisense working for anything in the CDATA section of my WSC file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文