When I created a Node task for Visual Studio Code it created a tasks.json file inside the .settings folder for the folder that you have open (node-app in this case as shown in the image below). ie: it creates a task per folder.
{
"version": "0.1.0",
"command": "node",
"isShellCommand": true,
"args": ["${file}"]
}
My question is how do you create a task per user rather than a project based task so that I can execute the node code from any folder rather that having to create the same task for each folder you open in Visual Studio Code.
Also how do you execute individual files without opening a folder.
It looks like this will be in v1.42, the January 2020 release. See https://github.com/microsoft/vscode/issues/89343 (user level tasks). And https://github.com/microsoft/vscode/issues/1435.
It is in the Insiders' Build already so presumably v1.42.
------- From the 1.42 release notes: