How do I compile an individual c++ file in Visual Studio 2013? (Ctrl-F7 Grayed out)

I have no problems building and running the Unreal Editor from Visual Studio 2013. However, when I make a change to a single file, and want to compile a single file (to ensure that it will compile before doing an entire build), the Compile option is grayed out in the Build menu (Also, CTRL-F7 does not work). Did I miss a setting or something?

No, you didn’t miss anything. UE4 uses it’s custom build system and compiling single source file in Visual Studio isn’t supported (at the time that I write this).

In addition, UBT should build just changed files but when you change the structure of the classes it will do full recompile.

I think you want to configure the UnrealBuildSystem with these options:

bUseUnityBuild = false

bEnableFastIteration = true

See Configuring Unreal Build System for more information on how to configure and what these options mean.

Would love to see this support added. Having a unity build does not make it impossible to support this.