It is not as simple as it should be, but the way to do it through the command palette (F1 key) and enter run task , it should look like this:

After you click this, you will probably receive an error message in which you do not have a created workplace, you can click the button or return to the command palette and edit the tasks.
What this will do is create a .vscode directory with the tasks.json file in it, you can either skip and uncomment the msbuild section, or simply insert this as an override:
{ "version": "0.1.0", "command": "msbuild", "args": [ // Ask msbuild to generate full paths for file names. "/property:GenerateFullPaths=true" ], "taskSelector": "/t:", "showOutput": "silent", "tasks": [ { "taskName": "build", // Show the output window only if unrecognized errors occur. "showOutput": "silent", // Use the standard MS compiler pattern to detect errors, warnings // and infos in the output. "problemMatcher": "$msCompile" } ] }
After you have done this, you can edit your build specifications, and either the command or CTRL + SHIFT + B will launch the builder. Here is the link for Tasks : Tasks in Visual Studio Code
source share