{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "type": "shell", "label": "C: gcc build active file", "command": "cd \"$(wslpath '${fileDirname}')\" && ( [[ ${fileExtname} == .c ]] && gcc \"${fileBasename}\" -o \"${fileBasenameNoExtension}\" && ./\"${fileBasenameNoExtension}\" ) || ( [[ ${fileExtname} == .cpp ]] && g++ \"${fileBasename}\" -o \"${fileBasenameNoExtension}\" && ./\"${fileBasenameNoExtension}\" )", "group": { "kind": "build", "isDefault": true } } ] }