TExcelTAD
Home › Unreal Engine 5 with C++ › Toolkit: Visual Studio & Rider

Toolkit: Visual Studio & Rider

Unreal C++ is ordinary C++ compiled by MSVC (Windows), Clang (macOS, Linux, consoles) and driven by Unreal's own build tool. Any editor can edit it, but two IDEs understand Unreal projects well: Visual Studio and JetBrains Rider. On macOS the toolchain is Xcode; on Linux, Rider or VS Code.

Visual Studio

Which version you need depends on the engine version. Check the Visual Studio setup page of the docs for your exact release. As of the 5.x releases:

Engine Visual Studio
UE 5.4 – 5.7 Visual Studio 2022 (17.8 or later; the docs name a recommended update per release)
UE 5.8 Visual Studio 2026 is the recommended IDE; VS 2022 17.14 is still accepted

In the Visual Studio Installer, select:

  • Workload: Game development with C++, and under its optional components: Unreal Engine installer (the engine prerequisites), a Windows 10/11 SDK, and the C++ profiling tools. The newer installers also list Unreal-specific components such as IDE support for Unreal Engine and the Unreal Engine Test Adapter; select them if they are offered.
  • Workload: Desktop development with C++ (the MSVC toolset).
  • .NET: UnrealBuildTool is a C# program, so the .NET SDK the docs ask for must be present (the .NET desktop development workload covers it).

Then, in the editor: Edit → Editor Preferences → Source Code → Source Code Editor = Visual Studio 2022 (or 2026). Tools → Refresh Visual Studio Project regenerates the .sln after you add files.

Settings worth changing:

  • Solution configuration Development Editor, platform Win64, startup project = your game (not UE5).
  • Turn on Tools → Options → Text Editor → C/C++ → Advanced → Disable External Dependencies Folders = True. It makes Solution Explorer much faster.
  • Microsoft's Visual Studio Integration Tool plugin (free on Fab) lets Visual Studio show which Blueprints use or override a C++ function or property. Add it to the project if you want those hints next to your UFUNCTIONs.

Debugging in Visual Studio

Press F5 with Development Editor to launch the editor under the debugger. Breakpoints in your game code then hit when you press Play in the editor. Development builds are optimized, so some locals show as "optimized away": for a stubborn bug, build DebugGame Editor, which keeps your game module unoptimized but runs the engine optimized.

Rider

JetBrains Rider (Windows, macOS, Linux) opens a .uproject directly, without generating a solution, and understands reflection macros: it completes UPROPERTY specifiers, shows which Blueprints override a BlueprintNativeEvent, and knows the Unreal coding standard. The first time you open a project it offers to install RiderLink, a plugin that lets the editor and IDE talk (Blueprint usages, logs, play/stop from the IDE). Install it into the engine or the project.

Rider has been free for non-commercial use since 2024, with paid licences for commercial work. Check JetBrains' current terms.

In the editor set Source Code Editor = Rider Uproject so double-clicking a C++ class opens Rider.

VS Code

VS Code works for Unreal with the C/C++ and C# extensions. Generate the workspace with GenerateProjectFiles -vscode (or Tools → Refresh Visual Studio Code Project). It is a reasonable choice on Linux and for quick edits, but IntelliSense struggles with the engine's size and the reflection macros. Most professionals use VS or Rider.

What "IntelliSense errors" mean

Visual Studio's red squiggles come from IntelliSense, a separate parser that doesn't run UnrealHeaderTool. It complains about GENERATED_BODY() and *.generated.h includes until you build once, and sometimes after. Trust the Output window (the real compiler) over the Error List. In the Error List, choose Build Only to hide IntelliSense noise.

Coding standard in one table

Unreal's naming convention is checked by people, not the compiler, but UnrealHeaderTool requires the prefixes on reflected types.

Prefix Meaning Example
U inherits UObject (not Actor) UHealthComponent, UGameplayAbility
A inherits AActor AArenaCharacter, AArenaGameMode
F plain struct/class (incl. USTRUCT) FVector, FHitResult, FArenaStats
E enum EAttackState, ECollisionChannel
I interface IAbilitySystemInterface
T template TArray, TObjectPtr
b bool variable bIsDead, bCanFire

The model below checks names against these rules, the same way a lint step in CI might.

cpp · try it yourself
#include <cctype>
#include <iostream>
#include <string>
#include <vector>

struct Decl { std::string kind, name; };   // kind: actor, object, struct, enum, bool

std::string check(const Decl& d) {
    char want = d.kind == "actor" ? 'A' : d.kind == "object" ? 'U' : d.kind == "struct" ? 'F'
              : d.kind == "enum" ? 'E' : 'b';
    if (d.name.size() < 2 || d.name[0] != want || !std::isupper(static_cast<unsigned char>(d.name[1])))
        return std::string("expected prefix '") + want + "' followed by an upper-case letter";
    return "ok";
}

int main() {
    std::vector<Decl> decls = {
        {"actor", "AArenaCharacter"}, {"object", "HealthComponent"}, {"struct", "FHitInfo"},
        {"enum", "EAttackState"}, {"bool", "IsDead"}, {"bool", "bIsDead"}, {"actor", "UPickup"},
    };
    for (const auto& d : decls) std::cout << d.kind << " " << d.name << ": " << check(d) << "\n";
}
actor AArenaCharacter: ok
object HealthComponent: expected prefix 'U' followed by an upper-case letter
struct FHitInfo: ok
enum EAttackState: ok
bool IsDead: expected prefix 'b' followed by an upper-case letter
bool bIsDead: ok
actor UPickup: expected prefix 'A' followed by an upper-case letter

Test yourself

The Error List shows errors on GENERATED_BODY() but the build succeeds. What is going on?

  1. The build is wrong
  2. IntelliSense doesn't run UnrealHeaderTool; trust the compiler output
  3. You need Rider
  4. GENERATED_BODY is deprecated

Which configuration keeps your game module unoptimized for debugging while the engine stays optimized?

  1. Shipping
  2. Development Editor
  3. DebugGame Editor
  4. Test

What prefix must a class deriving from AActor use?

  1. U
  2. F
  3. A
  4. T