The launch.json file should be inside the .vscode folder but it is not present there.
How to get this file so that I can modify the configurations?
json file located in a . vscode folder in your workspace (project root folder) or in your user settings or workspace settings. To create a launch.
A launch. json file is used to configure the debugger in Visual Studio Code. Visual Studio Code generates a launch. json (under a . vscode folder in your project) with almost all of the required information.
You can open the settings. json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P). Once the file is open in an editor, delete everything between the two curly braces {} , save the file, and VS Code will go back to using the default values.
As described in the Launch Configurations section of the VS Code docs:
VS Code keeps debugging configuration information in a
launch.json
file located in a.vscode
folder in your workspace (project root folder) or in your user settings or workspace settings.To create a
launch.json
file, click the create a launch.json file link in the Run start view.
As of VS Code 1.56:
Once that's created, it should now be available under your workspace's .vscode
folder.
Click on the debug side bar to open the debugging options. Then either the cog icon at the top, or the create a launch.json file link below the big blue button. If the launch.json file is present, it will open it otherwise it will generate one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With