I've seen AI work well as a sort of auto-complete in places where you're basically copying and pasting boilerplate; it's pretty good at figuring out via context what boilerplate you need, and suggesting it for you. When I'm writing unit tests is mostly when I've found it somewhat useful. It's still only right about 80% of the time, though, which makes it useful only insofar as I already knew what I wanted it to type and it's just saving me the keystrokes.
Is obscene. Copilot and ChatGPT used to generate boilerplate, when once upon a time the whole purpose of higher level languages was to eliminate boilerplate, and silently "auto-generate" it in lower level machine code.
Can be useful, but you have to know what you're looking at.