I know this has already been answered, but figured I would point out that I recently wrote a visual studio extension to fix issues around UE4 macros when using smart indenting. You can find it and instructions for installation on my github: GitHub - hackalyze/ue4-vs-extensions: Useful UE4 Visual Studio extensions.