How to compile c++ with VisualStudio?

I can compile my project inside UEditor, but can’t compile it in Visual Studio.