UE4 new class compiling time takes too long!

Whenever I create a new c++ class, whether it is a actor, blank, character or any class, it stucks on Compiling C++ Code, I tried disabling Automatically compile new c++ classes but it doesn’t work, I tried incredbuild but it didn’t worked too! My current ide is VS Code, but my previous ide was vs 2022, both had the same problem. Please help!