Configuring VSCode C Extension for C 17 Support
You may encounter IntelliSense errors with std::string_view in Visual Studio Code (VSCode) despite successfully building your code. This indicates the need to enable C 17 support. This article provides guidance on how to accomplish this.
Solution
"--std=c++17" "$gcc -std=c++17"
With these settings in place, VSCode will utilize C 17 for both IntelliSense and debugging.
The above is the detailed content of How to Configure VSCode's C Extension for C 17 Support?. For more information, please follow other related articles on the PHP Chinese website!