Guess what, the AI lied to me. But you might be able to utilize the API to integrate chatgpt into your IDE and provide code that way. I think it's only useful for optimisation of snippets, functions and writing example code or tests. I used it successfully to optimise JS f().