Could not find the task 'C/C++ : g++.exe build active file

So I have tried all tutorials when downloading visual studio code plus I also downloaded all required extensions for C++ but still nothing happens when I click run code but if I click on "start debugging", it gives me this error. It's not even running hello world?

my task.json file looks like this:

    "folders": [],
    "settings": {
        "C_Cpp.errorSquiggles": "Disabled"
    "launch": {
        "version": "0.2.0",
        "configurations": [
                "name": "g++.exe - Build and debug active file",
                "type": "cppdbg",
                "request": "launch",
                "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
                "args": [],
                "stopAtEntry": false,
                "cwd": "${fileDirname}",
                "environment": [],
                "externalConsole": false,
                "MIMode": "gdb",
                "miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
                "setupCommands": [
                        "description": "Enable pretty-printing for gdb",
                        "text": "-enable-pretty-printing",
                        "ignoreFailures": true
                "preLaunchTask": "C/C++: g++.exe build active file"

This is the error! What to do

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum