Using gpt 4o for coding - question

ChatGPT displays code in a way I don’t like it.
I simply can’t stop it vommiting code, full file while a single line needs has been updated.

How do I make it displays the code in a box that is compacted by default, not displaying the whole code for longer files. Ideally, near the ‘Copy code’ option to add another option to let me open the box if I would need to review the entire code before copy.