FWIW, I use CLion for everything C++. JetBrains has implemented AI in the CLion IDE. And while it's super easy to feel like a kid in a candy store with it, it's not quite where it needs to be atm. But it's going to evolve into a very reliable coding partner. The refactoring alone is worth its weight in gold!
I hope in time we have the same in the Lazarus IDE. Such a tool cld prove to be pretty valuable, in more ways than one.