How to use Clang and VScode for UE?

Epic_Wizard
Thu, 31 Oct 2024 20:43:31 +0000
C++

Hi everyone, i am a new beginer for UE, i am using UE 5.2.1 now.

I hope that i can use Clang to compile C++ scripts instead installing VS2022.

I have installed Clang in my windows system, and added the path to my enviroment path. However, I donot know how to use Clang in UE. I received the warning like: There is no compiler. To use C++ templete, you need to install VS2022.

I have added configuration in BuildConfiguration.xml as follows:

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <WindowsPlatform>
        <Compiler>Clang</Compiler>
    </WindowsPlatform>
</Configuration>

but it does not work. What should I do next? Very thanks!

2 posts - 2 participants