- Install Visual Studio Code (not Visual Studio)
- Make sure Xcode / clang is installed per instructions
- Ensure the VS Code extension called "C/C++ for Visual Studio Code" from Microsoft
- Press ++p and type "C/C++: Select IntelliSense Configuration..." - press enter
- Select "Use clang++ found at /usr/bin/"
- Should see a file as above, mostly filled out - add the "includePath" section
- Ensure "autosave" is turned on
- Install Unreal Engine 5.x
- Create a project
- Set Visual Studio Code as the editor
- Unreal Engine > Settings > search: source code editor > Visual Studio Code
- Close Unreal
- Restart Unreal by double clicking your uproject file
- Tools > Refresh Visual Studio Code project
- Compiles should open in VSCode
- Editing a new C++ class should run intellisense - check icon bottom right
Last active
September 15, 2024 10:41
-
-
Save sarah-j-smith/317386821d3de5b08fcf7605187caf60 to your computer and use it in GitHub Desktop.
Apple Mac - C++ Properties file for Visual Studio Code - with Unreal Engine include paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "C++ VSCode Mac Development", | |
"compilerPath": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++", | |
"compilerArgs": [ | |
"-isysroot", | |
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk" | |
], | |
"macFrameworkPath": [ | |
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks" | |
], | |
"cStandard": "c17", | |
"cppStandard": "c++20", | |
"intelliSenseMode": "clang-x64", | |
"compileCommands": "/Users/sez/Documents/2DCourseProjects/SezDesertRacer/.vscode/compileCommands_SezDesertRacer.json", | |
"includePath": [ | |
"${workspaceFolder}/Intermediate/**", | |
"${workspaceFolder}/Plugins/**", | |
"${workspaceFolder}/Source/**" | |
] | |
} | |
], | |
"version": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment