Can't launch from Visual Studio

In solution explorer, try setting UE4 as startup project.
Right click on Engine/UE4 and select “Set as startup project”.

An Attach option is visible when your startup project type is something other than executable(a dll for example).