I use chatgpt 4o canvas for targeted small tasks and high level architect brainstorming. I don’t use LLM for in-editor code completions. I have done enough prompt engineering and DNN models to see LLM as a glorified sentence transformer.
For posterity, I’m sharing how I structure my prompt so it may help everyone. I simply start a chat with sentence “Use your knowledge on elixir [programming language and coding patterns] to advise me.” where the bracket part is optional. Follow with a short blurb about the code I’m about to dump, then dump all the relevant code, finally write my request at the end, like “complete the TODO in the code”.
Here is the chat for that “check to see if two lists have the same members” task. ChatGPT . Since I asked it to advise me, LLM tends to provide options, and I believe the consensus in this thread is to use Enum.frequencies due to “the overhead of sorting”, that’s option 2.






















