You don’t have to restart the editor when you compile. It does take sometime to compile, depending on the size of your project and how good your computer is. My system and current game takes about 10 seconds to compile. If you want to do live coding but still want to fix this issue. Click the compile button in the picture above before you shutdown the engine. This will allow you to use live coding and fix your issue.
Hope that helps,