'The debugging task cannot be configured automatically in launch.json

VSCode does not automatically generate a proper launch.json file for my c++ code. It does not add a preLaunchTask. Here is an animated gif showing my steps: This is my mistake all over again Here is my launch provided Configuration

Any ideas how to fix VSCode so that I don't have to manually configure my launch.json every time?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source