Alternative Solutions
Visual Studio for Mac
Visual Studio for Mac is not the same product as VS for Windows. It's a re-branded Xamarin Studio. It's an entirely different product mainly meant for mobile and Web apps, It recently picked up proper .NET support as they moved everything from .NET Framework to .NET Core (now just called .NET).
Unfortunately, they've announced the retirement of the product.
VS Code
As the first alternative the VS Code should work well with C++ and a proper compiler and build toolchain. But of course, it's not like an IDE. Visual Studio is an integrated development environment (IDE) and Visual Studio Code is a rich text editor like Sublime Text and Atom. But the difference between the tools is more than just IDE and text editor. An IDE is a robust tool for writing, editing, debugging, testing, and running your code. A text editor only lets you write and edit your code. You might have to step out of a text editor to run your code or download plugins to help it do the running for you. There are good plugins for VS Code for sure. But remember, you can write code with other text editors and use plugins as well. I can tell the experience is not the same.
You can follow this documentation to install VS Code for your preferred system. Also, check this for Using Clang in Visual Studio Code for macOS.
VS Code is not recommended for beginners!
Xcode
Try the Xcode! Xcode is the main IDE of the macOS platform. Xcode provides developers with a unified workflow for user interface design, coding, testing, and debugging on the macOS.
Apple supports C++ with the Apple Clang compiler (included in Xcode) and the libc++ C++ standard library runtime (included in SDKs and operating systems). The compiler and runtime are regularly updated to offer new functionality, including many leading-edge features specified by the ISO C++ standard.
QtCreator
If you are familiar with the Qt Creator, and use it for any other development purpose, you might want to use it for Unreal Engine as well. Also, QT Creator could be a choice especially if you're on Linux. But there is a Warning Message on the Unreal documentation.
At Epic, we used this information to help set up QtCreator for use
with Unreal Engine, and while we provide this document as a courtesy,
The level of support we can offer for QtCreator is limited to Unreal
Engine 4.14
So, please share your personal experience in the comments below. (Thank you for sharing @JesperJuhl)
Rider
Rider for Unreal is a non-free option for C++ and Unreal Engine from JetBrains. If you use one of the tools of the JetBrains it's the same experience. So, if your company has a license, you can continue from there. It's a really great tool in general for both C++ and Unreal Engine. It gives you insights on Blueprints, assists with the reflection mechanism, and helps ensure good coding style and accuracy.
Additional Information