'VSCode not creating launch.json file

I'm debugging a project in VSCode using msvc. When I run the debugger, VSCode asks me to choose an environment and I choose the "C++ (Windows)" option:

choose_environment

Then it asks me to select a configuration:

enter image description here

I choose the "cl.exe build and debug active file". Everything runs correctly and it creates the ".vscode" folder with the "tasks.json" file in there for the next time I try and build the project. It DOES NOT create the "launch.json" so every time I want to run the debugger I have to select the configuration again. In previous projects, the "launch.json" was created with the correct configuration here:

enter image description here

Why is vscode not creating the "launch.json" file? Am I missing something?



Sources

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

Source: Stack Overflow

Solution Source