CodePudding user response:
Simple, you see my blog: https://blog.csdn.net/liups/article/details/102512769One task. Json file
{
"Version" : "2.0.0,"
"Command", "g + +",
"Args" : [" - g ", "${file}", "- o", "${fileDirname}/${fileBasenameNoExtension}. Exe"],
"ProblemMatcher" : {
"The owner", "CPP",
"FileLocation" : [" relative ", "${workspaceRoot}"],
"The pattern" : {
"Regexp:" ^ "(. *) : (\ \ d +) : (\ \ d +) : \ \ s + (warning | error) : \ \ s + $" (. *),
"File" : 1,
"The line" : 2,
"Column" : 3,
"Severity" : 4,
"Message" : 5
}
}
}
That line is the g + + args. Exe parameters, it is ok to modify it, how to modify can run the g + + -- help or baidu search can be
CodePudding user response:
VS right-click on your project, select properties, then the linker, regular, in normal child attributes have a output file, here you can set your output EXE name and path