Cannot find name '$' in TS file unless referenced in every file : <p>I'm setting up typescript in Visual Studio 2015. I'm going to be using jquery with the TS files. When I use jquery, VS will underline the '$' and say cannot find name, and will not build successfully. The only way it will build is if I add the reference to jquery typings in each TS file. <code>/// &lt;reference path="typings/index.d.ts" /&gt;</code>  Is there anyway to use this reference globally instead of adding it to every file?</p>

<p>In Visual Studio Code I dont have this issue.</p>

<p>My directory looks like this
-Scripts
 --ts
   ---typings
   ---main.ts
   tsconfig.json
 --js</p>

<p>My tasks.json file in the root</p>

<pre><code>    {
    "version": "0.1.0",

    // The command is tsc. Assumes that tsc has been installed using npm install -g typescript
    "command": "tsc",

    // The command is a shell script
    "isShellCommand": true,

    // Show the output window only if unrecognized errors occur.
    "showOutput": "silent",

    // Tell the tsc compiler to use the tsconfig.json from the open folder.
    "args": ["-p", "../Scripts/Weblink/ts"],

    // use the standard tsc problem matcher to find compile problems
    // in the output.
    "problemMatcher": "$tsc"
}
</code></pre>

<hr>

<p>taskconfig.json in Scripts/ts</p>

<pre><code>{
"compileOnSave": true,
"compilerOptions": {
    "noImplicitAny": false,
    "noEmitOnError": true,
    "removeComments": false,
    "sourceMap": true,
    "target": "es5",
    "outDir": "../lib/"
},
"exclude": [
    "typings/*"
]
}
</code></pre>
