- Create a folder .vscode in you workspace directory (anotherwords in project dir).
- Make sure you have $NVM_DIR/nvm-exec and $NVM_DIR/nvm.sh. If not then ln them into $NVM_DIR/
- Puth 3 files there: node.sh .nvmrc launch.json
Created
June 14, 2018 06:04
-
-
Save ilguzin/ae375453082ed95e44476b4ddffb545f to your computer and use it in GitHub Desktop.
VS Code NodeJS settings.
This file contains 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
0.12 |
This file contains 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
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch program", | |
"program": "${workspaceRoot}/index", | |
"runtimeExecutable": "${workspaceRoot}/node.sh", | |
"protocol": "legacy" | |
} |
This file contains 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
#!/bin/bash | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
nvm run $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment