Using Unreal Engine 5.4 with Microsoft Visual Studio for the first time

I recently decided to get my toes wet and try writing a simple C++ asset for Unreal Engine. However, I must not have something configured correctly because it took down the entire project I was working on, stating that I must rebuild from source. I don’t even know what that means or how to do it (I’ve exclusively worked with BluePrints up through this point).

I have Unreal Engine 5.4.2 installed. I have Microsoft Visual Studio 2022 installed as well. What else do I need to begin writing scripts?

Thank you!