For anyone else coming across this post in 2021....
I found that I couldn't get the example code to work with reading files in VS Code until I modified the problemMatcher line in tasks.json to:
"problemMatcher": {
"base": "$gcc",
"fileLocation": [
"absolute"
]
},"
It was really driving me crazy so once I found a solution I decided to post it here. Still couldn't get the debugger to work but that's ok :')
Thanks for this helpful article!