We have been struggling to set up VSCode on Macs in class. I've got it working. I hope this helps! the link: https://code.visualstudio.com/docs/cpp/config-clang-mac
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.