Using Visual Studio Code for ARM Development – Defines

From EdWiki

Revision as of 15:12, 30 March 2022 by Jshankar (Talk | contribs) (VSCode – Defines)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

VSCode – Defines

It is common to pass defines to the compiler using flags at compile time.


Setting these for VSCode is simple: just add them to the “defines” section of c_cpp_properties.json, without the -D flag prefix:

    "defines": [

If the include paths and defines are properly set up in Visual Studio Code, the C/C++ plugin should be able to properly parse our code, identify syntax errors, and will provide Intellisense code completion to improve the speed and accuracy of writing!