I’ve been working with TypeScript and MVC4 today. Everything is working well but every time I add a new .ts file using VS’s ‘Add / TypeScript File’ dialog the file that is added is populated with some sample code:
// Interface
interface IPoint {
getDist(): number;
}
// Module
module Shapes {
…. etc.
Where’s this sample code coming from? I want my files to be empty. I don’t want to have to rip this code out every time I add a file.
You’ll need to edit the template, which you can find here…
The file named
file.tscontains the item template for TypeScript new files.