Cursor and Antigravity as the IDE for Unreal C++ and UnrealSharp C¶
Last verified: 2026-10-24 — research only (UnrealSharp source, Cursor and Antigravity docs, extension READMEs). No hands-on setup has been run yet. Items marked unverified must be checked on a real project before this doc is trusted; record the result here.
Goal: get from Cursor or Antigravity what Rider and Visual Studio 2022 get out of the box with UnrealSharp — open the solution, IntelliSense, hot reload, F5 debugging — plus C++ navigation for the native side.
What Rider / VS get natively, and the fork equivalent¶
| Capability | Rider / VS 2022 | Cursor / Antigravity |
|---|---|---|
| Open C# solution from the editor | "Open C# Solution" → OS .sln association |
Same button works only if .sln is associated with the fork — or open the script folder directly (preferred; see step 4) |
| C# language service | Built in | DotRush (nromanov.dotrush, MIT, Open VSX) or ReSharper for VS Code (JetBrains). Microsoft C# Dev Kit is licensed for Microsoft VS Code only and refuses to run in forks. |
| Hot reload | File watcher on save | Identical — UnrealSharp reloads on save regardless of IDE |
| F5 debug | Properties/launchSettings.json profiles |
Forks ignore launchSettings.json; use the launch.json template here. Microsoft vsdbg is licence-restricted to Microsoft products, so use DotRush's debugger or ReSharper's. Attach to the CoreCLR hosted in UnrealEditor.exe is unverified. |
| C++ navigation | Built in | clangd with compile_commands.json from UBT. Microsoft C/C++ extension is licence-restricted in forks. |
| Unreal MCP in the IDE's agent | — | .cursor/mcp.json / Antigravity mcp_config.json (see mcp.md) |
Setup¶
Templates live in .claude/docs/templates/unreal/vscode/. Copy them into the
game project's .vscode/ and fill the <PLACEHOLDERS>.
- .NET 10 SDK installed and on PATH (
dotnet --list-sdks). - Extensions (from Open VSX — Antigravity's default; Cursor's marketplace
also carries them):
nromanov.dotrush,llvm-vs-code-extensions.vscode-clangd. Optional: JetBrains ReSharper for VS Code (C# debugging added July 2026, targets Cursor; Antigravity support unverified).extensions.jsonin the template recommends these and lists C# Dev Kit /ms-vscode.cpptoolsas unwanted so the fork does not nag. - Generate the C# solution once from the editor (UnrealSharp generates it on
first enable) — it lands at
<ProjectDir>/<ScriptDirName>/<ManagedProjectName>.sln. - Open the project root as a folder in Cursor/Antigravity, not the
.slnfile. DotRush picks the solution up fromsettings.json→dotrush.roslyn.projectOrSolutionFiles. Optional: associate.slnwith the fork so UnrealSharp's "Open C# Solution" button launches it (Windows: right-click a.sln→ Open with → chooseCursor.exe/Antigravity.exe→ Always). Unverified that a fork handles a bare.slnpath well — opening the folder is the reliable route. - C++ IntelliSense: generate
compile_commands.jsonwith the task UE: Generate clang database (runs UBT-mode=GenerateClangDatabase), then clangd finds it at the project root. Regenerating project files wipes clangd settings in some setups; keep them in.clangd, not the workspace file. - Debug C#: start the editor (or let the launch config start it), then run
UnrealSharp: Attach to editor (DotRush
coreclrattach, process picker). Unverified: whether DotRush's debug engine can attach to CoreCLR loaded via hostfxr insideUnrealEditor.exe. If it fails, record the error here; the fallback is Rider or Visual Studio for debugging sessions only, with Cursor/Antigravity for editing — hot reload is unaffected either way. - Debug C++: the UE: Launch editor (native — CodeLLDB, limited PDB support on Windows, unverified)
config uses CodeLLDB (
vadimcn.vscode-lldb) withtype: lldb. CodeLLDB's support for MSVC/PDB Windows binaries is limited; for real native debugging attach from Visual Studio or Rider.
Hands-on verification checklist (run once, then update this doc)¶
- [ ] DotRush resolves UnrealSharp generated glue types (go-to-definition into
UnrealSharpassemblies) - [ ] Save a
.csfile → editor hot-reloads (look at the Output Log) - [ ] DotRush attach to
UnrealEditor.exehits a breakpoint in a C#BeginPlay - [ ] clangd resolves
#include "GMCAbilityComponent.h"from a plugin - [ ] Same four in Antigravity
Sources¶
- UnrealSharp:
ManagedUnrealSharpEditorCallbacks.cs,LaunchSettingsUtilities.cs,CSHotReloadSubsystem.cpp, issue #707 - https://cursor.com/for/csharp (C# Dev Kit licence; DotRush / ReSharper recommendation)
- https://github.com/dotnet/vscode-csharp/issues/8816 (Dev Kit refusing in Antigravity)
- https://github.com/JaneySprings/DotRush
- https://blog.jetbrains.com/dotnet/2026/07/13/rs-vsc-debugging (read via search snippet only)