Copy code from a screenshot
Formatting uses 3 credits, plus 1 to read an image not read yet.
-
In a new Agent chat, add the screenshot with Upload: any screenshot of code, or the Code in VS Code example under the message box, which shows up after a reload or two.
-
Send:
Copy the code from this image and format it as code.
-
Choose Copy the text, the copy icon at the box's top right, and paste anywhere.
The copy drops file tabs, line numbers and notes such as “You, 5 days ago”, and restores the indentation. Original shows the text exactly as read; Copy the text copies the version you're looking at.
Copy text with its typos fixed
For labels and notes rather than code, ask:
Copy the text and fix the typos.
What to check
Check indentation, brackets and numbers against the screenshot. The fold under the box, such as 12 changes, lists what the formatting changed. The image itself stays as it is.
Common mistakes
Naming a language. Ask for “code”. The Agent never rewrites code in another language, so it turns down “Format it as Python code” as a conversion.