Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Unreal ToolkitNew to Visual Studio Code? Get it now.
Unreal Toolkit

Unreal Toolkit

Thyke

|
1 install
| (0) | Free
Build, debug, test, package and launch Unreal Engine projects from VS Code with any engine directory you choose: class and module wizards, plugin management, automation tests in the Test Explorer and a live log viewer.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Unreal Toolkit

Build, debug, test, package and launch Unreal Engine projects from VS Code — with whichever engine directory you choose. Project files, C++ class / module / plugin wizards, plugin management, automation tests in the Test Explorer and a live log viewer are included.

The Unreal Toolkit dashboard during a build, with the module list

The Unreal Log view

Both screenshots show sample data.

Install

From the VS Code Marketplace: search for Unreal Toolkit in the Extensions view, or run

code --install-extension Thyke.unreal-toolkit

Or download the .vsix from the releases and use Extensions: Install from VSIX….

What it does

Engines

  • Finds installed engines: Epic Games Launcher installs and the builds registered on the machine (HKCU\Software\Epic Games\Unreal Engine\Builds on Windows, Install.ini on macOS and Linux).
  • Lets you add any engine folder by hand (Unreal: Add Engine Directory…). The folder is validated by reading Engine/Build/Build.version; picking the Engine folder itself, or a folder inside it, also works.
  • The active engine is remembered per workspace. It defaults to the engine the .uproject asks for in EngineAssociation. The extension never falls back to "some" engine on its own: opening a project with an unrelated engine version can re-save its assets.
  • When the active engine differs from the one in the .uproject, the dashboard says so and the editor is only opened after you confirm.

Build

  • Build, Rebuild, Clean and Cancel, for the selected target, configuration and platform.
  • Build a single module (-Module=<name>).
  • Compiler, linker, UnrealHeaderTool and UnrealBuildTool messages go to the Problems panel.
  • Progress ([124/345]) is shown in the dashboard and the status bar.
  • Builds run as VS Code tasks, so they can also be used from tasks.json (see below).

Project

  • Generate project files for VS Code or Visual Studio, and compile_commands.json for clangd.
  • Generate Headers runs UnrealHeaderTool for the selected target without compiling anything.
  • Deep Clean: delete Binaries, Intermediate, DerivedDataCache, Saved, .vs and the Binaries / Intermediate of project plugins that have source. Sizes are shown first and nothing is deleted without confirmation. Plugins without a Source folder are never touched.
  • Switch Engine Version: change the active engine and, optionally, rewrite EngineAssociation, delete build output and regenerate project files. An engine that is not registered yet can be registered for the current user, the same way the Explorer "Switch Unreal Engine version…" entry does it.

Launch

  • Open the Unreal Editor, optionally after building the editor target.
  • Launch a standalone game (-game), or a dedicated server plus one client.

Package

  • Package Project… runs AutomationTool's BuildCookRun with a saved profile: platform, configuration, target, and whether to build, cook, pak, use IoStore, compress, include prerequisites and keep debug symbols. New Packaging Profile… asks for those and stores the profile in the workspace settings (ueToolkit.packaging.profiles). Cook progress is shown like build progress; the finished build is offered for revealing.
  • Package Plugin… runs BuildPlugin for a plugin of the project. The result always goes into a folder of its own named after the plugin, because BuildPlugin empties its output folder first; if that folder already has content you are asked before anything is replaced.

Test

  • Automation tests appear in VS Code's Test Explorer. Refresh Automation Tests (or the refresh button in the Test Explorer) starts the command-line editor once to list them; the list is remembered afterwards.
  • Run a single test, a group or everything. The editor target is built first, the tests run in one command-line editor session, and each result comes back with its error message and, when the engine reports one, the source line.
  • ueToolkit.tests.extraArgs defaults to -nullrhi (no rendering). Tests that need the renderer fail that way; use -RenderOffscreen for them.

Commandlets and engine tasks

  • Run Commandlet…: Compile All Blueprints, Fix Up Redirectors, Resave Packages, Fill Derived Data Cache, or any other by typing its arguments. The ones that rewrite assets ask first.
  • Engine Tasks (Source Engine)…, for an engine built from source: run Setup, generate the engine's project files, build UnrealEditor, ShaderCompileWorker, UnrealPak or Unreal Insights.

Live Coding

  • Live Coding Compile asks the running editor to compile, without leaving VS Code (Windows). Unreal has no command for this, so the extension presses the Live Coding shortcut, Ctrl+Alt+F11, for you; it does so only when the Live Coding console is running. The result is shown by that console and the editor.
  • When a normal build is refused because Live Coding is active, the error offers Live Coding Compile instead.

Debug

  • Debug Unreal Editor builds the editor target and starts the editor under the debugger; Attach Debugger to Unreal Editor finds the running editor of this project and attaches to it.
  • Add Debug Configurations to launch.json writes "Unreal: Debug Editor", "Unreal: Debug Standalone Game" and "Unreal: Attach to Process". They read the engine through ${command:ueToolkit.editorExecutable} and friends, so they keep working when you select another engine, and build first through the Unreal: Build task.
  • Needs a C++ debugger extension: C/C++ (ms-vscode.cpptools) or CodeLLDB. On Windows the configurations include the engine's natvis file and the source mappings an installed engine needs.

Create

  • New C++ Class… — pick a module, a parent class (Actor, Pawn, Character, components, Object, Interface, subsystems, data assets, widgets, … or any class of your project by name) and a name. Type AI/PatrolTask to put it in a subfolder. Files follow the engine's own templates, land in Public/Private as appropriate, get the right _API macro and your project's copyright line. Also on the folder context menu in the Explorer.
  • New Module… — in the project or in a plugin: Build.cs, module class, the entry in the .uproject / .uplugin, and ExtraModuleNames in the Target.cs files that build that module type.
  • New Plugin… — code, code with an editor module, code and content, or content only; enabled in the .uproject.

Plugins

  • Switch any plugin on or off from the dashboard; the .uproject keeps its formatting.
  • Add Engine Plugin… lists every plugin that ships with the active engine, searchable by name, category and description.
  • .uproject and .uplugin files are validated and completed (module types, loading phases, …).

Log

  • The Unreal Log view in the bottom panel follows Saved/Logs/<Project>.log live: filter by verbosity, by category and by text, pause and resume following, click a line to read it in full. Choose Log File… opens an older session.

Editing

  • Completion of specifiers inside UCLASS(…), USTRUCT(…), UENUM(…), UINTERFACE(…), UPROPERTY(…), UFUNCTION(…), UPARAM(…), UMETA(…) and their meta=(…) lists, with a one-line description each.
  • Snippets: uclass, ustruct, uenum, uinterface, uprop, upropcomp, uproprep, ufunc, ufuncpure, uevent, unative, urpcserver, urpcclient, urpcmulti, ureplifetime, uelog, uelogfmt, uelogcategory, uescreen, udelegatedynamic, udelegatemulti, ucreatesub, ucast, utimer, uensure, ulinetrace.

Dashboard

The Unreal icon in the activity bar opens a dashboard with the project, the active engine, build controls and three lists: Modules (type, file counts, public and private dependencies, a button to build just that module), Plugins (project plugins with their modules, plus the engine and Marketplace plugins the project references) and Engines. Unreal: Open Dashboard in Editor Area shows the same dashboard as a wide tab.

Requirements

  • VS Code 1.90 or newer.
  • An Unreal Engine 5 installation, and whatever that engine needs to compile (on Windows: Visual Studio Build Tools with the C++ workload and the .NET SDK the engine asks for). Developed against 5.6–5.9. UE 4 is recognised (UE4Editor), but has not been tried.

Getting started

  1. Open the folder that contains your .uproject.
  2. Click the Unreal icon in the activity bar.
  3. If the engine was not picked up automatically, click the engine box at the top and choose Add engine directory….
  4. Pick a target and configuration, then Build (Ctrl+Alt+B).

Settings

Setting Default Purpose
ueToolkit.engines [] Engine folders added by hand: [{ "name": "My Source Build", "path": "D:/UE/UnrealEngine" }]
ueToolkit.projectFile "" Path to the .uproject when it is not in the workspace root
ueToolkit.build.extraArgs [] Extra UnrealBuildTool arguments for every build
ueToolkit.build.saveBeforeBuild true Save all files before building
ueToolkit.build.revealTerminal true Show the build terminal when a build starts
ueToolkit.editor.extraArgs [] Extra arguments for the Unreal Editor
ueToolkit.game.extraArgs ["-log", "-windowed", "-ResX=1280", "-ResY=720"] Arguments for the standalone game and the client
ueToolkit.projectFiles.format "ask" ask, vscode, visualstudio or default
ueToolkit.packaging.profiles [] Packaging profiles; see below
ueToolkit.tests.extraArgs ["-nullrhi"] Extra editor arguments for listing and running automation tests
ueToolkit.tests.buildBeforeRun true Build the editor target before running automation tests
ueToolkit.debug.type "auto" auto, cppvsdbg, cppdbg or lldb
ueToolkit.debug.buildBeforeLaunch true Build the editor target before Debug Unreal Editor starts it
ueToolkit.statusBar.enabled true Show engine, target, configuration and build buttons in the status bar

A packaging profile:

"ueToolkit.packaging.profiles": [
  {
    "name": "Win64 Shipping",
    "platform": "Win64",
    "configuration": "Shipping",
    "build": true, "cook": true, "pak": true, "iostore": true, "compressed": true,
    "prerequisites": true,
    "debugInfo": false,
    // ${projectDir} and ${profile} are replaced; a relative path is relative to the project
    "archiveDirectory": "${projectDir}/Saved/Packages/${profile}",
    "maps": [],                 // empty: what the project settings say
    "extraArgs": []             // extra BuildCookRun switches
  }
]

Tasks

// .vscode/tasks.json
{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "ueToolkit",
      // build | rebuild | clean | headers | projectFiles | clangDatabase
      // package ("profile") | packagePlugin ("plugin", "output") | commandlet ("commandlet" or "args")
      // engineTask ("engineTask")
      "action": "build",
      "target": "MyGameEditor",     // optional; defaults to the dashboard selection
      "configuration": "Development",
      "platform": "Win64",
      "args": ["-NoUBA"],
      "group": { "kind": "build", "isDefault": true },
      "label": "Build editor"
    }
  ]
}

Development

npm install
npm run build              # bundle the extension and the dashboard
npm test                   # unit tests for everything in src/core
npm run test:integration   # runs the extension inside VS Code against a fake engine (Windows)
                           # with UETK_REAL_ENGINE and UETK_REAL_PROJECT set: against a real engine and project
npm run preview            # dashboard with mock data at http://localhost:5179 (?state=building&theme=light…)
                           # and the log viewer at http://localhost:5179/preview/log.html
npm run package            # produces unreal-toolkit-<version>.vsix

Press F5 in VS Code with this folder open to try the extension in an Extension Development Host.

Code that does not need VS Code lives in src/core and is covered by the unit tests; the files next to it wire that code to VS Code. The dashboard UI is webview/main.ts and webview/main.css, the log viewer webview/log.ts and webview/log.css.

Platforms

The extension is developed and run on Windows. macOS and Linux are supported in the code — engine discovery and registration through Install.ini, Build.sh / RunUAT.sh, the .app layout of the Mac editor, process handling, the LLDB/GDB debug configurations — and the unit tests run on all three systems in CI (.github/workflows/ci.yml). The extension has not been tried with a real engine on macOS or Linux. Live Coding is a Windows feature of the editor and its command is Windows only.

Known limits

  • Engine Tasks could only be tried against a fake engine: no source build was available while developing.
  • A dedicated server in a packaging profile ("server": true) needs a source engine and a Server target, and has not been tried.
  • Live Coding Compile sends the default shortcut. If you changed the Live Coding shortcut in the editor, it will not trigger.
  • Paths: UnrealBuildTool fails when intermediate files exceed Windows' 260-character limit, which a deeply nested output folder for a packaged plugin can cause. Pick a short output path.

Contributing

Issues and pull requests are welcome at https://github.com/Thyke/unreal-toolkit. Run npm test before sending a change; anything that does not need the VS Code API belongs in src/core with a unit test.

License

MIT.

Unreal Toolkit is an independent, community-made extension. It is not affiliated with, endorsed or sponsored by Epic Games. Unreal and Unreal Engine are trademarks or registered trademarks of Epic Games, Inc. in the United States of America and elsewhere.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft