Istiak Mahmood
Istiak Mahmood

Reputation: 2422

How to add a .ts file in Visual Studio

It may sound really stupid, but i am going to ask that question, because i believe there are more people like me who comes to a different language and in the first day they can not find out the file type.

So my question is: How can i add a IVisual file in visual studio.

When i try to add a new IVisual item as a .ts file i can not find that file type. What i need is when i add new item i should be able to add a new item of IVisual. So the how can i add IVisual in visual studio 2015.

enter image description here

Upvotes: 2

Views: 4218

Answers (1)

NikolaiDante
NikolaiDante

Reputation: 18649

The file IVisual.ts (which seems to be part of the PowerBI source) is a TypeScript file.

To add a TypeScript file: Right click > Add New Item then search for typescript:

enter image description here

If this option is missing, try downloading TypeScript for Visual Studio from the Microsoft site.


You could of course, just create a .ts file without going through the UI (e.g. a renamed .txt file for instance), but getting TypeScript working in studio is probably going to be worthwhile if it's something you intend to use.

Upvotes: 3

Related Questions