Intellisense works nicely because compiler has been specified in the compilecommands file but many configurations dont have compiler specified in vscode and then it will fail to understand classes and will show false errors more than usual. This is an error of compileCommands_YourProjectName.json file. And this issue is on windows as well only if VS code is not aware of the compiler and tries to find it itself. Me and boocs are investigating
https://github.com/boocs/compilecommands here is his github to understand more about the issue on Unreal 4.26
@DanM check your “command:”’ the compiler must be specified in your case but when it is not and vscode tries to find the compiler for you, you will get intellisense errors. On Linux vscode tries to find clang for example.
A quick fix is simply replace all:
"command": "
To
"command": "\"\"
in compileCommands_YourProjectName.json