To fix that, you need to add explicit includes to the JUCE code you’re using.
So, make sure that your code.cpp has #include "code.h"
and your code.h
file has #include <juce_gui_basics/juce_gui_basics.h>
or whatever else juce modules you’re using.
The JUCE internal modules don’t do that, which indeed screws up intellisense.
You can see more info here:
But the TL;DR is: you can fix it for your own modules by adding correct includes.