Clangd extension helper for VSCode - Unreal 5.2+

For people who like the VSCode ecosystem, clangd is a great alternative to Microsoft’s C++ extension.

clangd offers fast code completion, auto header insertion, and more. You will still use Microsoft’s C++ extension for debugging.

My extension:

  • Creates a clangd project and sets all needed settings
  • Uses Unreal Build Tool’s “-mode=GenerateClangDataBase” to create code completion files
  • Creates a completionHelper.cpp away from project code to add all Unreal symbols to code completion
  • Loads completionHelper.cpp, at startup, to add all Unreal Macros to code completion
  • Detects when intellisense files need updating
  • Extensive documenation
  • Has a uninstall feature

This has been tested on Windows and Ubuntu 22.04 and seems to work great. I’ve used clangd for months with Unreal 5.2. Haven’t used it with 5.3 much but also seems to work.

Mac Users: I need a tester to see if this works. There is a section in the below link to maybe help Mac users who try this out.

Privacy & Terms