How to run a command in Visual Studio Code with launch.json
You can define a task in your tasks.json file and specify that as the preLaunchTask in your launch.json and the task will be executed before debugging begins. Example: In tasks.json: For version 0.1.0: { “version”: “0.1.0”, “tasks”: [{ “taskName”: “echotest”, “command”: “echo”, // Could be any other shell command “args”: [“test”], “isShellCommand”: true }] } … Read more