Desktop · Guides
Copy and save code from a reply
The bar of a code block stays in view while you scroll; copy the code, download it as a file of its language, as Markdown or as text, and fold a long block.
Checked on Desktop 0.2.1
A newer version is out (Desktop 0.2.4): some details may differ.
When the model writes code in a reply, it comes in a code block with a bar on top: the language, Copy and ⋯.
Keep the bar in view
Section titled “Keep the bar in view”In a long block the bar stays pinned at the top while you scroll through the code, and leaves with the block. Copy and ⋯ work once the block has fully arrived.
Save the code
Section titled “Save the code”Open ⋯, or right-click the bar for the same menu:
- Download as .‹ext› saves a file of the code’s language;
- Download as Markdown (.md);
- Download as text (.txt).
The file is named after the file the model wrote in the block; otherwise it is talos-‹language›-‹date›.
Fold a long block
Section titled “Fold a long block”For a block longer than 40 lines, the ⋯ menu has Collapse: the block folds, and Show all ‹n› lines opens it again (so does Expand in the same menu). Wrap lines or Single line choose how long lines show.