VIsual Studio Code tip to repair Outline

Found this today, figured it might be useful for others.

My Outline pane in VSCode was pretty much garbage, because the FOREACH_FACE macro was confusing it.

The solution is to create a “cpp.hint” file in the workspace, containing the definition of the macro.:

#define FOREACH_FACE(x) for(uint8_t x = 0; x < FACE_COUNT ; ++ x)

Then, from the command palette, you need to reset the Intellisense Database, and Reload Window.

After that your outline should be usable.

3 Likes