Configuring C/C++ for VS Code

Microsoft has an official page for the extension, which you can view at https://code.visualstudio.com/docs/languages/cpp. This page describes, among other things, how to configure through the use of JSON files. Let's start by creating a new configuration file to manage our C/C++ environment. You can generate a new configuration file by pressing the F1 key, typing C/C, and selecting C/Cpp: Edit Configurations…:

Command Palette with C/C++ extension options

This will generate a new c_cpp_properties.json in a .vscode folder within your current project. The file will contain configuration options for your C/C++ compiler based on your platform, the C and C++ standards to use, and the include paths for header files. You can close this file once it's generated. We will revisit it when we configure the EMSDK.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset