Visual Studio add-in for WSF and WSC files

2.3k views Asked by At

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.

1

There are 1 answers

1
Reuben On BEST ANSWER

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.