vscod compile source code for linux

vscode wants to compile c/c++ program

On the local linux, you must first install the gcc and g++ compilers, because this will be written into the configuration file later

First install the c/c++ extension plug-in in this software, and then when we start compiling the c/c++ program

A .vscode directory will be automatically generated

Then first look at the configuration file of a configuration file launch.json, which mainly configures the debugging information of the code file

The details are as follows

Don’t configure more, just configure one at a time, just don’t click more to add more configurations

Look at the tasks.json file again, which is the running file of the program

Don’t configure this, just configure one. 

Guess you like

Origin blog.csdn.net/Pxx520Tangtian/article/details/131713723