What counts as code?
Any clip Tucket tags as Code or JSON. Its card turns dark, like an editor, with line numbers and colours for keywords, strings, comments and numbers. The indentation is kept, and long lines are not wrapped.
The type pill names the language: Swift, Python, SQL, JSON, TypeScript, Shell and others.
Markdown notes are not code. Since 1.4.9 they show formatted, with a Markdown label. See What Tucket captures.
How do I read all of it?
Pick the card with the arrow keys and press Space. It opens big in Preview & Edit, with its colours.
Or rest the pointer on the card. It widens so you can read the whole thing, and scrolls both ways. Cards do not widen when Tucket opens from the left or right (beta).
Settings, then Opening Tucket, then Reading a card by resting on it, sets how long you rest first, or switches widening off.
How do I edit code?
- Right-click the clip and choose Edit Code…. Or press Space to see it big, then E or double-click.
- Make your change. Quotes and dashes stay straight, nothing is autocorrected or spell-checked, Tab puts in spaces, and Return keeps your indent (one step deeper after a {).
- Press ⌘S to save the change to the clip, or ⇧⌘C to copy it.
Good to know
- All Clips edits code the same way.
- Hidden clips cannot be edited. Right-click and choose Stop Hiding first.
- Code clips arrived in 1.4.5.
Related
Still stuck? hello@arpitchandak.com.
