Teach you how to quickly solve the problem of repeatedly configuring launch.json?

The launch.json of vscode can't be applied to the whole world, which brings a lot of trouble to our usual programming life. It is always necessary to configure the file or copy the original configuration file. Today, I will take you to solve this problem thoroughly~

First, you need to have a usable configuration file (including launch.json, tasks.json), and then 完整内容copy and paste the launch.json file into the C:\Users\86198\AppData\Roaming\Code\User\settings.jsonfile, pay attention to the format:
add the parameter "launch": ( At the end of the original setting, if there is no comma, you must add it first), then paste the copied content in and save
(for details, please refer to the difference between the front and back configuration in the picture)Insert picture description here

Insert picture description here
Then copy the original tasks.json file to the C:\Users\86198\AppData\Roaming\Code\Userfolder.

Open vscode, create a new file or project, save it in any location, Ctrl + F5 to compile and run. I was surprised to find that the operation was successful, and there is no need to configure launch.json! !

Finally, the editor attaches a complete configuration file, friends in need can download (free~)
File download link: https://download.csdn.net/download/qq_45975757/12916060

Guess you like

Origin blog.csdn.net/qq_45975757/article/details/109037302