You should reuse your C++ code from one project to another to speed up your workflow.

How?

According to this post on the Unreal Engine Forums,

  1. Copy your .h and .cpp files from the original project and paste them into a project of your choice (I suggest having the project closed before you do that).
  2. Go to your header files and change the project module name i.e. “EXAMPLEPROJECT_API” to the project API you’re importing the code into.
  3. Make sure the new code compiles.
  4. Finally, delete the Intermediate and Binaries folder.
  5. Then re-generate your project files by right clicking your .uproject file and click on the Generate Visual Studio Project.