Compile button is greyed out

Why is the compile button greyed out for C++ in Unreal Engine 4. I’m using Visual Studio and the compile button is greyed out. Is there some check box I have to tick or something?