VS Code is my personal go to for writing SQL. It has a MacOS version, an Oracle Developer Extension, and can connect directly to my DB for viewing tables (requires a VPN or being on the same network - We're self hosted).
I have also tried SQL Developer and DBeaver, but didn't really care for the UI in either. VS Code keeps things simple. List of tables on the left, space for code on the right.
I also keep the code I write in Github, but I use Github Desktop to sync. It requires pushing / pulling the code manually, but that has been good for me to learn.