title: How to Import Intellisense files into vsCode (Visual Studio Code)
body: <p>I'm not sure I understand how the intellisense works for Microsoft's new vsCode text editor.  In the <a href="https://code.visualstudio.com/Docs/nodejs" rel="noreferrer">docs</a> under the <em>"Great Code Editing Experience"</em> heading, it shows a warning under the node global variable <code>__dir</code> and offers a lightbulb suggestion to add a reference to a d.ts file so you can get intellisense for node:</p>
  
  <p><img src="https://i.stack.imgur.com/fqDgk.png" alt="enter image description here">  </p>
  
  <p>I have 2 questions:</p>
  
  <p>1 - How do I import <a href="https://github.com/borisyankov/DefinitelyTyped/" rel="noreferrer">DefinitelyTyped</a> files (d.ts) directly (without editor suggesting it) or do I have to copy them from the github source and put them in a typings directory?</p>
  
  <p>2 - Can I get intellisense for any library that has a typescript definition?  I tried the below, but when I type in <code>express.</code> or <code>when.</code> , I don't get any intellisense.  However, I do get node intellisense.  </p>
  
  <pre><code>/// &lt;reference path="../typings/node/node.d.ts"/&gt;
  /// &lt;reference path="../typings/express/express.d.ts" /&gt;
  
  var when    = require('when')
    , express = require('express')
    , gulp    = require('gulp')
  </code></pre>