# Previews and smart detection

> Preview items, and see what Deck recognizes in text, images, links, and code.

## Preview an item

Select an item and press **Space** to open its preview. While the preview is open, it follows your selection. Press **Space** again to close it. You can also right-click an item and choose **Preview**.

The bar at the bottom of a preview shows the app the item came from and when you copied it. Depending on the item, it also has these buttons:

- **Open in IDE** jumps to the file and line the text was copied from.
- **Copy Plain Text** copies rendered Markdown as plain text.
- **Show QR Code** shows a link as a QR code.
- **Copy OCR Text** copies the text recognized in an image.

## What Deck detects

Deck labels each item when you copy it:

- **Color**: text that is exactly a hex color such as `#F80`, `#FF8800`, or `#FF880080`. The preview shows a swatch and the RGB values.
- **Link**: text that is a complete URL.
- **Code**: text in one of these languages: Swift, Python, JavaScript, TypeScript, Java, C#, C++, Go, Rust, Ruby, PHP, HTML, CSS, SQL, Shell, JSON, XML, or YAML. The preview highlights the syntax.
- **Image**, **File**, **Rich Text**, and **Text** otherwise.

You can search by these kinds with the `type:` and `lang:` rules. See [Search syntax](https://deckclip.app/docs/reference/search-syntax).

## Details in text

For text, the preview lists what it finds, each with a copy button:

- email addresses
- phone numbers
- links
- IP addresses
- JWT tokens, with the header and payload decoded and formatted

## Instant calculation

When you copy a math expression, Deck shows the result on the card and in the preview.

- `128*24` shows `= 3072`.
- `(15 + 5) / 4` shows `= 5`.
- `50%` shows `= 0.5`.
- `sqrt(81)` and `pow(2, 8)` work.
- `128*24=3072` is evaluated on the left of the `=`.

Deck calculates text of 3 to 100 characters that contains a number and an operator. Code, file paths, and dates are ignored. To turn this off, clear **Instant Calculation** in **Settings › General**.

## Link cleaning

When you copy a web link, Deck removes tracking parameters such as `utm_source` and `fbclid` from it, so the link you paste is shorter. This is on by default. To turn it off, clear **Auto-clean tracking parameters** in **Settings › General**.

## QR codes

Right-click a link and choose **Show QR Code**, or click **Show QR Code** in its preview. Very long links cannot be turned into a QR code.

Deck can also show a preview card for a link. This fetches the page, so you can turn it off with **Generate Link Preview** in **Settings › Privacy & Security**.

## Text in images (OCR)

Deck reads the text in images you copy, on your Mac, so you can search for it. This happens automatically in the background and is skipped when macOS Low Power Mode is on.

To copy the recognized text, right-click the image and choose **Copy OCR Text**.

Change the options in **Settings › General** under **OCR Recognition**:

- **Recognition Quality**: **High Accuracy** (default) or **Fast**.
- **Text Correction**: uses the system language model to correct results. On by default.
- **Max Text Length**: how many characters of recognized text to keep. The default is 10000.
- **Recognition Languages**: Chinese (Simplified), Chinese (Traditional), English, German, Japanese, and Korean. If none is selected, Deck uses the system default.

## Figma

When you copy from Figma, Deck recognizes the item and shows a Figma card with a summary of what you copied.

## Open in IDE

When you copy text from a supported editor, Deck remembers the file, line, and column. Click **Open in IDE** in the preview to jump back, as long as the file still exists.

Supported editors:

- Visual Studio Code and VS Code Insiders
- Cursor
- Windsurf
- Antigravity
- Xcode
- JetBrains IDEs
- Sublime Text
- Zed

## Math formulas

Text and Markdown that contain LaTeX math are shown as formatted math in the preview. Deck recognizes `$...$`, `$$...$$`, `\(...\)`, `\[...\]`, and common environments such as `equation`, `align`, `matrix`, and `cases`. Math inside code blocks is left as written. **Copy Plain Text** turns formulas into readable text.

- Previous: [Paste](https://deckclip.app/docs/guides/paste.md)
- Next: [Privacy and security](https://deckclip.app/docs/guides/privacy.md)

---

- HTML: https://deckclip.app/docs/guides/previews
- 中文: https://deckclip.app/zh-cn/docs/guides/previews.md

© 2026 Yuze Pan
