Get Started with C++ on Linux in Visual Studio Code
code.visualstudio.com › docs › cppIt's important to have helloworld.cpp open in the editor because the next step uses the active file in the editor for context to create the build task in the next step. From the main menu, choose Terminal > Configure Default Build Task. A dropdown appears showing various predefined build tasks for C++ compilers. Choose C/C++: g++ build active file.