Okay, so now we have the VSCode running. But look at all those squiggles!
Makes you want to throw up your hands.
Don’t.
After you build it once, you should be able to find a file names Definitions.<projectname>.h under the folder <projectname>/Intermediate/Build/Mac/x86_64/UnrealGame/Development/<projectname>/
This has the #defines required to compile the code. I have included them in what builds for my system, but your system may required something different.
So your c_cpp_properties.json will look something like the following (anyplace it says PROJECT replace with your project’s name).
I’m still playing with it and will update this as I find things that need correction. It is a lot and I wish Epic would put all the headers in a single folder (or at least links to the headers — Windows should still be able to do links AFAIK and Linux has no problems with them).
{
"configurations": [
{
"name": "PROJECTEditor Editor Mac Development (PROJECT)",
"compilerPath": "/usr/bin/clang++",
"intelliSenseMode": "clang-x64",
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"compileCommands": "/pathnameto/PROJECT/.vscode/compileCommands_PROJECT.json",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"includePath": [
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include",
"${default}",
"${workspaceFolder}/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/PROJECT",
"${workspaceFolder}/Source/PROJECT/Public",
"${workspaceFolder}/Source/PROJECT/Private",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Editor/EditorStyle/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Editor/PropertyEditor/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Editor/UnrealEd/Classes",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Editor/UnrealEd/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Developer/ToolMenus/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Engine/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Engine/Classes",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Core/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/AIModule",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/AIModule/Classes",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/TraceLog/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/CoreUObject/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Engine/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Slate/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/InputCore/Classes",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/SlateCore/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/ApplicationCore/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Net/Core/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/RHI/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/RenderCore/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/NavigationSystem/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/PhysicsCore/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/GameplayTasks/Classes",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/GameplayTasks/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Experimental/Chaos/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Experimental/ChaosCore/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/GameplayTags/Classes",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/AudioMixerCore/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/DeveloperSettings/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/AssetRegistry/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/AnimationCore/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Renderer/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/ClothingSystemRuntimeInterface/Public",
"/Users/Shared/Epic Games/UE_5.0/Engine/Source/Runtime/Engine/Classes/GameFramework"
],
"defines": [
"DEPRECATED_FORGAME DEPRECATED",
"UE_DEPRECATED_FORGAME=UE_DEPRECATED",
"IS_PROGRAM=0",
"UE_EDITOR=1",
"HAS_METAL=1",
"GL_SILENCE_DEPRECATION=1",
"ENABLE_PGO_PROFILE=0",
"USE_VORBIS_FOR_STREAMING=1",
"USE_XMA2_FOR_STREAMING=1",
"UE_RELATIVE_BASE_DIR=../../../",
"WITH_DEV_AUTOMATION_TESTS=1",
"WITH_PERF_AUTOMATION_TESTS=1",
"UNICODE=1",
"_UNICODE=1",
"__UNREAL__=1",
"IS_MONOLITHIC=0",
"WITH_ENGINE=1",
"WITH_UNREAL_DEVELOPER_TOOLS=1",
"WITH_UNREAL_TARGET_DEVELOPER_TOOLS=1",
"WITH_APPLICATION_CORE=1",
"WITH_COREUOBJECT=1",
"WITH_VERSE=0",
"USE_STATS_WITHOUT_ENGINE=0",
"WITH_PLUGIN_SUPPORT=0",
"WITH_ACCESSIBILITY=1",
"WITH_PERFCOUNTERS=1",
"USE_LOGGING_IN_SHIPPING=0",
"WITH_LOGGING_TO_MEMORY=0",
"USE_CACHE_FREED_OS_ALLOCS=1",
"USE_CHECKS_IN_SHIPPING=0",
"USE_ESTIMATED_UTCNOW=0",
"WITH_EDITOR=1",
"WITH_IOSTORE_IN_EDITOR=1",
"WITH_SERVER_CODE=1",
"WITH_PUSH_MODEL=1",
"WITH_CEF3=1",
"WITH_LIVE_CODING=0",
"WITH_CPP_MODULES=0",
"WITH_CPP_COROUTINES=0",
"UBT_MODULE_MANIFEST=UnrealEditor.modules",
"UBT_MODULE_MANIFEST_DEBUGGAME=UnrealEditor-Mac-DebugGame.modules",
"UBT_COMPILED_PLATFORM=Mac",
"UBT_COMPILED_TARGET=Editor",
"UE_APP_NAME=UnrealEditor",
"PLATFORM_MAC=1",
"PLATFORM_APPLE=1",
"WITH_TTS=0",
"WITH_SPEECH_RECOGNITION=0",
"NDEBUG=1",
"UE_BUILD_DEVELOPMENT=1",
"UE_IS_ENGINE_MODULE=0",
"UE_PROJECT_NAME=PROJECT",
"UE_TARGET_NAME=PROJECTEditor",
"UE_MODULE_NAME=PROJECT",
"UE_PLUGIN_NAME=",
"IMPLEMENT_ENCRYPTION_KEY_REGISTRATION()=",
"IMPLEMENT_SIGNING_KEY_REGISTRATION()=",
"DEPRECATED_FORGAME=DEPRECATED",
"UE_DEPRECATED_FORGAME=UE_DEPRECATED",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"GPUPARTICLE_LOCAL_VF_ONLY=0",
"WITH_ODSC=0",
"ENGINE_API=DLLIMPORT",
"UE_ENABLE_ICU=1",
"WITH_ADDITIONAL_CRASH_CONTEXTS=1",
"WITH_DIRECTXMATH=0",
"IS_RUNNING_GAMETHREAD_ON_EXTERNAL_THREAD=1",
"WITH_MALLOC_STOMP=1",
"CORE_API=DLLIMPORT",
"TRACELOG_API=DLLIMPORT",
"PLATFORM_MAX_LOCAL_PLAYERS=0",
"COREONLINE_API=DLLIMPORT",
"COREUOBJECT_API=DLLIMPORT",
"NETCORE_API=DLLIMPORT",
"NETCOMMON_API=DLLIMPORT",
"APPLICATIONCORE_API=DLLIMPORT",
"RHI_WANT_BREADCRUMB_EVENTS=1",
"RHI_WANT_RESOURCE_INFO=1",
"RHI_API=DLLIMPORT",
"JSON_API=DLLIMPORT",
"JSONUTILITIES_API=DLLIMPORT",
"WITH_FREETYPE=1",
"SLATECORE_API=DLLIMPORT",
"INPUTCORE_API=DLLIMPORT",
"SLATE_API=DLLIMPORT",
"WITH_UNREALPNG=1",
"WITH_UNREALJPEG=1",
"WITH_LIBJPEGTURBO=1",
"WITH_UNREALEXR=1",
"IMAGEWRAPPER_API=DLLIMPORT",
"WITH_LIBTIFF=1",
"MESSAGING_API=DLLIMPORT",
"MESSAGINGCOMMON_API=DLLIMPORT",
"RENDERCORE_API=DLLIMPORT",
"ANALYTICSET_API=DLLIMPORT",
"ANALYTICS_API=DLLIMPORT",
"SOCKETS_PACKAGE=1",
"SOCKETS_API=DLLIMPORT",
"ASSETREGISTRY_API=DLLIMPORT",
"ENGINEMESSAGES_API=DLLIMPORT",
"ENGINESETTINGS_API=DLLIMPORT",
"SYNTHBENCHMARK_API=DLLIMPORT",
"RENDERER_API=DLLIMPORT",
"GAMEPLAYTAGS_API=DLLIMPORT",
"DEVELOPERSETTINGS_API=DLLIMPORT",
"PACKETHANDLER_API=DLLIMPORT",
"RELIABILITYHANDLERCOMPONENT_API=DLLIMPORT",
"AUDIOPLATFORMCONFIGURATION_API=DLLIMPORT",
"MESHDESCRIPTION_API=DLLIMPORT",
"STATICMESHDESCRIPTION_API=DLLIMPORT",
"SKELETALMESHDESCRIPTION_API=DLLIMPORT",
"ANIMATIONCORE_API=DLLIMPORT",
"PAKFILE_API=DLLIMPORT",
"RSA_API=DLLIMPORT",
"NETWORKREPLAYSTREAMING_API=DLLIMPORT",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"PHYSICSCORE_API=DLLIMPORT",
"COMPILE_WITHOUT_UNREAL_SUPPORT=0",
"INCLUDE_CHAOS=1",
"CHAOS_MEMORY_TRACKING=0",
"CHAOS_API=DLLIMPORT",
"COMPILE_WITHOUT_UNREAL_SUPPORT=0",
"INCLUDE_CHAOS=1",
"CHAOS_CHECKED=0",
"CHAOS_DEBUG_NAME=1",
"CHAOSCORE_API=DLLIMPORT",
"INTEL_ISPC=1",
"VORONOI_API=DLLIMPORT",
"GEOMETRYCORE_API=DLLIMPORT",
"SIGNALPROCESSING_API=DLLIMPORT",
"AUDIOEXTENSIONS_API=DLLIMPORT",
"AUDIOMIXERCORE_API=DLLIMPORT",
"AUDIOLINKCORE_API=DLLIMPORT",
"COOKONTHEFLY_API=DLLIMPORT",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"WITH_RECAST=1",
"WITH_NAVMESH_SEGMENT_LINKS=1",
"WITH_NAVMESH_CLUSTER_LINKS=1",
"UNREALED_API=DLLIMPORT",
"DIRECTORYWATCHER_API=DLLIMPORT",
"DOCUMENTATION_API=DLLIMPORT",
"READ_TARGET_ENABLED_PLUGINS_FROM_RECEIPT=1",
"LOAD_PLUGINS_FOR_TARGET_PLATFORMS=1",
"PROJECTS_API=DLLIMPORT",
"SANDBOXFILE_API=DLLIMPORT",
"EDITORFRAMEWORK_API=DLLIMPORT",
"EDITORSUBSYSTEM_API=DLLIMPORT",
"INTERACTIVETOOLSFRAMEWORK_API=DLLIMPORT",
"TYPEDELEMENTFRAMEWORK_API=DLLIMPORT",
"TYPEDELEMENTRUNTIME_API=DLLIMPORT",
"EDITORSTYLE_API=DLLIMPORT",
"SOURCE_CONTROL_WITH_SLATE=1",
"SOURCECONTROL_API=DLLIMPORT",
"UNCONTROLLEDCHANGELISTS_API=DLLIMPORT",
"UNREALEDMESSAGES_API=DLLIMPORT",
"GAMEPLAYDEBUGGER_API=DLLIMPORT",
"BLUEPRINTGRAPH_API=DLLIMPORT",
"HTTP_PACKAGE=1",
"WITH_WINHTTP=0",
"HTTP_API=DLLIMPORT",
"FUNCTIONALTESTING_API=DLLIMPORT",
"AUTOMATIONCONTROLLER_API=DLLIMPORT",
"AUTOMATIONTEST_API=DLLIMPORT",
"LOCALIZATION_API=DLLIMPORT",
"WITH_SNDFILE_IO=0",
"AUDIOEDITOR_API=DLLIMPORT",
"AUDIOMIXER_API=DLLIMPORT",
"AUDIOLINKENGINE_API=DLLIMPORT",
"TARGETPLATFORM_API=DLLIMPORT",
"TEXTUREFORMAT_API=DLLIMPORT",
"LEVELEDITOR_API=DLLIMPORT",
"SETTINGS_API=DLLIMPORT",
"INTROTUTORIALS_API=DLLIMPORT",
"HEADMOUNTEDDISPLAY_API=DLLIMPORT",
"VREDITOR_API=DLLIMPORT",
"COMMONMENUEXTENSIONS_API=DLLIMPORT",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"LANDSCAPE_API=DLLIMPORT",
"PROPERTYEDITOR_API=DLLIMPORT",
"ACTORPICKERMODE_API=DLLIMPORT",
"SCENEDEPTHPICKERMODE_API=DLLIMPORT",
"EDITORCONFIG_API=DLLIMPORT",
"DETAILCUSTOMIZATIONS_API=DLLIMPORT",
"CLASSVIEWER_API=DLLIMPORT",
"GRAPHEDITOR_API=DLLIMPORT",
"STRUCTVIEWER_API=DLLIMPORT",
"CONTENTBROWSER_API=DLLIMPORT",
"CONTENTBROWSERDATA_API=DLLIMPORT",
"COLLECTIONMANAGER_API=DLLIMPORT",
"ENABLE_HTTP_FOR_NFS=1",
"NETWORKFILESYSTEM_API=DLLIMPORT",
"UMG_API=DLLIMPORT",
"MOVIESCENE_API=DLLIMPORT",
"TIMEMANAGEMENT_API=DLLIMPORT",
"MOVIESCENETRACKS_API=DLLIMPORT",
"PROPERTYPATH_API=DLLIMPORT",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"WITH_RECAST=1",
"WITH_NAVMESH_SEGMENT_LINKS=1",
"WITH_NAVMESH_CLUSTER_LINKS=1",
"NAVIGATIONSYSTEM_API=DLLIMPORT",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"GEOMETRYCOLLECTIONENGINE_API=DLLIMPORT",
"MATERIALSHADERQUALITYSETTINGS_API=DLLIMPORT",
"WITH_PHYSX_RELEASE=0",
"UE_PHYSX_SUFFIX=PROFILE",
"FIELDSYSTEMENGINE_API=DLLIMPORT",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"CHAOSSOLVERENGINE_API=DLLIMPORT",
"MESHBUILDER_API=DLLIMPORT",
"TOOLMENUSEDITOR_API=DLLIMPORT",
"TOOLMENUS_API=DLLIMPORT",
"STATUSBAR_API=DLLIMPORT",
"INTERCHANGECORE_API=DLLIMPORT",
"INTERCHANGEENGINE_API=DLLIMPORT",
"DEVELOPERTOOLSETTINGS_API=DLLIMPORT",
"SUBOBJECTDATAINTERFACE_API=DLLIMPORT",
"SUBOBJECTEDITOR_API=DLLIMPORT",
"KISMET_API=DLLIMPORT",
"PHYSICSUTILITIES_API=DLLIMPORT",
"TOOLWIDGETS_API=DLLIMPORT",
"ASSETTAGSEDITOR_API=DLLIMPORT",
"ADDCONTENTDIALOG_API=DLLIMPORT",
"MESHUTILITIES_API=DLLIMPORT",
"MESHMERGEUTILITIES_API=DLLIMPORT",
"HIERARCHICALLODUTILITIES_API=DLLIMPORT",
"MESHREDUCTIONINTERFACE_API=DLLIMPORT",
"SKELETALMESHEDITOR_API=DLLIMPORT",
"PERSONA_API=DLLIMPORT",
"SKELETONEDITOR_API=DLLIMPORT",
"ANIMATIONWIDGETS_API=DLLIMPORT",
"ANIMATIONEDITOR_API=DLLIMPORT",
"ADVANCEDPREVIEWSCENE_API=DLLIMPORT",
"ASSETTOOLS_API=DLLIMPORT",
"KISMETCOMPILER_API=DLLIMPORT",
"GAMEPLAYTASKS_API=DLLIMPORT",
"WITH_RECAST=1",
"WITH_GAMEPLAY_DEBUGGER=1",
"AIMODULE_API=DLLIMPORT",
"INCLUDE_CHAOS=1",
"WITH_PHYSX=1",
"PHYSICS_INTERFACE_PHYSX=0",
"WITH_APEX=0",
"WITH_APEX_CLOTHING=0",
"WITH_PHYSX_COOKING=0",
"WITH_NVCLOTH=0",
"WITH_CHAOS=1",
"WITH_CHAOS_NEEDS_TO_BE_FIXED=1",
"WITH_CHAOS_CLOTHING=1",
"WITH_CLOTH_COLLISION_DETECTION=1",
"WITH_CUSTOM_SQ_STRUCTURE=0",
"WITH_IMMEDIATE_PHYSX=0",
"CLOTHINGSYSTEMRUNTIMEINTERFACE_API=DLLIMPORT",
"ANIMATIONDATACONTROLLER_API=DLLIMPORT",
"PROJECT_API=DLLEXPORT",
"AUGMENTEDREALITY_API=DLLIMPORT",
"MRMESH_API=DLLIMPORT"
]
}
],
"version": 4
}
This got me running with Intellisense. It’s a lot, but hopefully you will find it useful.