Created
August 3, 2016 18:21
-
-
Save visualjeff/3382931063d0f7659be5e6663569b866 to your computer and use it in GitHub Desktop.
VS Code TypeScript Code completion how to and how to debug node.js in VS Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To add code completion for node.js | |
================================== | |
sudo npm install typings --global | |
typings search --name node | |
typings install env~node --global --save | |
Then I added the following to the top of my index.js file. | |
/// <reference path="typings/index.d.ts"/> | |
To locally debug in Visual Studio Code: | |
======================================= | |
set breakpoint in your source code | |
view/debug from menu bar | |
Click debug green arrow in upper right hand corner | |
If a launch.json doesn't already exist for your project then a new one will be generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment