Chat is a fairly terrible interface for real work, since you can’t modify anything, meaning the context can get easily poisoned. I much prefer the API playgrounds, and third party interfaces, that slow editing both my input and the responses.
I've been using 16x Prompt to construct prompts with source code context and pasting the final prompt into ChatGPT web UI: https://prompt.16x.engineer/