Find text in a desktop file preview
Search a desktop plain-text preview case-insensitively, move through wrapping matches, and understand its 2 MiB preview limit and 300 Ki-character syntax-coloring threshold.
Last reviewed
Find searches only the rendered contents of the desktop plain-text viewer. It compares text without case sensitivity, highlights non-overlapping matches and never changes the cloud file.

Before you start
Open a plain-text or code file at most 2 MiB, such as TXT, JSON, XML, logs, YAML, TOML, INI, common source-code extensions, HTML or CSS. Syntax coloring is applied only when the rendered text is at most 300 × 1024 UTF-16 code units; larger previewable text remains searchable without syntax coloring. Markdown opens in its own rendered/source viewer, while CSV opens through Office Preview, so neither surface provides this in-file Find bar.
Steps
- With the preview open, choose Edit > Find…, or press Ctrl+F on Windows/Linux or Command+F on macOS.
- Type into the field labeled Find in file. The counter changes to
current/total; a query without a match reports No results. - Press Enter or select Next to advance. Use Shift+Enter or Previous to move backward. Navigation wraps after the final or first occurrence.
- Press Esc to close Find and clear its highlights.

The match operation runs in the displayed document and does not send the query as a file edit. Leaving the viewer also removes the temporary ranges.
Expected result
Every visible occurrence matching the entered letters is highlighted, and the active result advances in document order with wraparound.
Troubleshooting
If Find… is unavailable, the current file may be in Markdown, Office Preview or another specialized viewer rather than the plain-text viewer. A text file above 2 MiB receives a download fallback instead of searchable content.
“This file is not text-previewable.” means binary data was detected in the first 8,192 characters. “Failed to load file content.” indicates the raw text request failed; confirm access and connectivity, then reopen the file.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.