Skip to content

Instantly share code, notes, and snippets.

@visualjeff
Created August 3, 2016 18:21
Show Gist options
  • Save visualjeff/3382931063d0f7659be5e6663569b866 to your computer and use it in GitHub Desktop.
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
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