Download

VS code: Intellisense Errors

I’ve recently started working through the Gamedev.tv udemy course on Unreal. I followed the steps given to setup vs code, but intellisense continues to raise odd errors. The source does compile so it must be an intellisense error. One solution I found was to set “C_Cpp.intelliSenseEngine”: “Tag Parser”, which removes so many error checks that vs code really isn’t that useful anymore. Here is one error:

“”"
cannot open source file “stdlib.h” (dependency of “/Users/landen/Programming_Projects/Unreal_Projects/BullCowGame-starter-kit/Intermediate/Build/Mac/x86_64/BullCowGameEditor/Development/Engine/SharedPCH.Engine.h”)
“”"

And it is also complaining about missing parenthesis when all are present:

If it helps, here is my c_cpp_properties.json:

{
    "configurations": [
        {
            "name": "BullCowGameEditor Editor Mac Development (BullCowGame)",
            "intelliSenseMode": "clang-x64",
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ],
            "compileCommands": "/Users/landen/Programming_Projects/Unreal_Projects/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame.json",
            "cStandard": "c17",
            "cppStandard": "c++98"
        },
        {
            "name": "Mac",
            "intelliSenseMode": "clang-x64",
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ],
            "compileCommands": "/Users/landen/Programming_Projects/Unreal_Projects/BullCowGame-starter-kit/.vscode/compileCommands_Default.json",
            "cStandard": "c17",
            "cppStandard": "c++98"
        }
    ],
    "version": 4
}

I have the same problem.

It’s common knowledge that Intellisense isn’t suitable for working with Unreal’s codebase.

It’s not an ideal solution, but you’re best bet is to get either:
VS with Visual Assist,
VS with Resharper C++, or
Rider for Unreal