PureEditor Complete Guide
From your first file to Markdown, search, large documents and keyboard workflows.
What is PureEditor? PureEditor is a native macOS text and code editor for programming, Markdown, notes and large text files. No Electron, no account, and your files are never uploaded.
Requires macOS 15 or later. The App Store edition uses App Sandbox and can only access files and folders you explicitly choose.
Why PureEditor?
⚡ Native, fast and lean
Built with Swift and AppKit, with no Electron. A clean launch uses about 58 MB of footprint, so it can stay open all day.
🔒 Offline and privacy-first
No account, no analytics, and files stay on your Mac. The App Store edition never downloads code.
📝 Code and Markdown in one place
Syntax highlighting for 28 languages, live Markdown preview, KaTeX, Mermaid, plus CSV, encoding and line-ending tools.
📚 Built for large files and many tabs
Tabs share the strip width, background tabs release undo stacks and parse trees, and highlighting follows the visible range to keep large multi-file sessions responsive.
Feature overview
| Category | Action |
|---|---|
| Files and workspace | Tabs, 1/2/4-pane split editing with a different file per pane, sidebar file tree, outline, diagnostics, session restore and recent files. |
| Editing | Multi-cursor, rectangular column selection, auto-indent, soft tabs, bracket matching, folding, bookmarks and per-tab undo. |
| Search | Find and replace, Find in Files, regular expressions, globs, .gitignore, result panel and replace undo. |
| Markdown | Split, full-screen and WYSIWYG preview; KaTeX, Mermaid, table of contents, footnotes and HTML/PDF export. |
| Syntax and data | 28 Tree-sitter languages, 9 built-in grammar packs, encoding detection, LF/CRLF/CR and CSV/TSV tools. |
| Binary and Hex | Read-only Hex viewer, offset/hex/ASCII columns, go to offset, copy a hex dump, 64 KB page cache. |
| Appearance and languages | Ten themes, a custom 35-token theme editor, six interface languages and EmEditor-style tabs. |
| Performance and security | 105 MB files, visible-range highlighting, density-compressed minimap, App Sandbox and no tracking. |
| System integration | Finder Open With, Services, menu-bar quick New Tab, Dock drag-and-drop and Pin Window. |
1. Interface overview
The window has five areas: the flat toolbar at the top, the tab strip and Markdown toolbar below it, the optional file tree on the left, the editor in the middle, and the status bar at the bottom.
- Toolbar:New, open, save, cut, copy, paste, undo, redo, find, replace, line numbers, word wrap, minimap, More and pin window.
- Tab strip:The sidebar toggle is on the left, followed by tabs and the new-tab button. Tab width adapts to the number of open tabs.
- Status bar:Shows the caret line and column, selection count, encoding, line endings and current language.
- Line numbers and current line:Line numbers are on by default and follow scrolling; the current line has a subtle highlight.
2. Tabs, windows and sidebar
Files open in tabs by default instead of one window per file. Tab width is shared between 64 and 240pt; below 96pt the title and close button collapse so only the file icon remains.
- Drag tabs to reorder them; pin a tab from the context menu so Close Other Tabs will not close it.
- Modified tabs show a dot, and closing an unsaved tab asks whether to save.
- The sidebar width is draggable and supports File, Outline and Diagnostics modes.
- The split icon at the right of the tab strip switches between one, two and four panes. Each pane has a file icon in its header for choosing another open file or opening a new one.
- Pin Window keeps the window above others while you edit alongside other apps.
Tab actions
- ⌘T creates a tab; you can also drop files onto the window or tab strip.
- Drag tabs to reorder them; when crowded they collapse to icon-only.
- Right-click a tab to pin, close or use other actions; pinned tabs stay on the left.
- ⌥⌘2 splits left/right, ⌥⌘4 shows four panes and ⌥⌘` moves to the next pane; ⌥⌘P still opens the Markdown preview.
- Drop files onto the PureEditor Dock icon to open them in new tabs.
3. Editing
PureEditor is built on native NSTextView and adds multi-cursor, column selection, bracket matching, folding and bookmarks for code editing.
Multi-cursor and column selection
Hold Option and drag for rectangular column selection; multi-cursor lets you type the same text on several lines.
Auto-indent and soft tabs
Enter keeps the current indentation; Tab can insert spaces or a tab character with adjustable width.
Bracket matching and current line
The matching bracket is highlighted when the caret is next to one, and the current line is tinted for easy tracking.
Folding and bookmarks
Fold syntax blocks and bookmark lines, then jump between bookmarks with F2 / Shift+F2.
Undo history per tab
Switching tabs keeps each tab's undo history; distant background tabs release their stacks to save memory.
Autosave and recovery
Named files can autosave on a timer; untitled files keep a recovery copy that can be restored after an unexpected exit.
Undo is unlimited by default and can be capped at 50, 100, 200, 500 or 1000 groups. Even after a very large paste, Undo returns the caret to its original position.
More tools
Command palette and Go to Symbol
⇧⌘P opens the command palette; ⇧⌘O jumps to functions, classes and symbols in the current file or project.
Macro recording and playback
⌥⌘M starts or stops recording keyboard, mouse and menu actions; ⌥⌘P plays them back. Macros can be named and saved.
Zoom
⌘= zooms in, ⌘- zooms out and ⌘0 resets zoom, useful for presentations and high-resolution displays.
Minimap and invisibles
Click the minimap to jump; invisibles mode shows spaces as dots and tabs as underlines.
Common editing actions
| Action | How |
|---|---|
| Add a cursor | ⌃⌥↑ / ⌃⌥↓,或按住 Option 拖曳做矩形選取。 |
| Clear extra cursors | ⌃Esc |
| Fold the current block | ⌥⌘[;展開全部用 ⌥⌘]。 |
| Toggle bookmark | ⌃⌘B;F2 / ⇧F2 前後跳轉。 |
| Move or duplicate lines | Use Edit → Line Actions; ⌘D duplicates the current line, and ⌥⌘↑ / ⌥⌘↓ move it up/down. |
4. Syntax highlighting and languages
PureEditor uses Tree-sitter for structural highlighting in 28 languages, including Swift, Python, JavaScript/JSX, TypeScript/TSX, C/C++, CSS, Go, Rust, Java, Lua, R, YAML, HTML/XML, SCSS, TOML/INI, Markdown and SQL.
Nine larger grammars (Objective-C, Scala, Ruby, Shell, Rust, PHP, SQL, C# and Kotlin) are embedded as signed universal dylibs and loaded with dlopen only when a matching file opens, so startup stays lean. The App Store edition never downloads code.
5. Markdown and preview
Opening a .md file shows the split preview automatically; close it any time and it will stop opening by itself. The Markdown toolbar provides bold, italic, inline code, code blocks, links, headings, lists, task lists, quotes and tables.
Three preview modes
| Mode | Best for |
|---|---|
| Split preview | Edit source and see the result at the same time; the preview follows the caret and scrolling. |
| Full Preview | Reading, checking layout, printing or exporting PDF; the source is hidden. |
| WYSIWYG | Edit directly on the rendered page, useful if you are not comfortable with Markdown syntax. |
- Supports KaTeX math, Mermaid diagrams, a table of contents, footnotes, YAML front matter and syntax-highlighted code blocks.
- Switch between split preview, full preview and WYSIWYG editing.
- Export HTML, print, or save as PDF; printing uses the rendered preview.
- Remote images and raw HTML are off by default and can be enabled separately from the View menu to avoid loading unwanted external content.
6. Find and replace
⌘F opens Find and ⌘⌥F opens Replace. It supports case sensitivity, whole word, regular expressions, multi-line mode, search within selection, preserve-case replacement, replacement templates and history.
- Find in Files:⇧⌘F searches an entire folder asynchronously, with include/exclude globs, hidden files and .gitignore support.
- Results are grouped by file and clickable; Replace in Files runs a dry run first, backs up originals, and offers Undo Last Replace in Files.
- Find All lists every match in the current file for quick browsing and jumping.
Search options
Case / whole word
Match exact case or complete words only.
Regex / multi-line
Supports groups, lookahead/lookbehind and cross-line matching, with live error feedback.
In selection
Search only the current selection, handy for narrowing down a large file.
Preserve case
Keep the original capitalization when replacing, for example Apple → Orange.
7. CSV / TSV
PureEditor does not provide a spreadsheet grid, but it does provide practical text column tools: align columns, sort by column and filter by text. Quoting and TSV delimiters are preserved.
a,1
long,22
Select a CSV block and choose Align Columns to pad cells; Sort and Filter ask for a column number or keyword first.
8. Encoding and line endings
PureEditor detects UTF-8, UTF-16, UTF-32, Big5, GB18030, Shift_JIS, EUC-JP, EUC-KR, Windows-1252 and more. If detection is wrong, use Reload with Encoding to choose the correct one.
Common encodings
| Encoding | Typical use |
|---|---|
| UTF-8 / UTF-8 BOM | Cross-platform code, Markdown, web pages and general text. |
| UTF-16 / UTF-32 | Some Windows tools and exports from older systems. |
| Big5 / GB18030 | Traditional/Simplified Chinese legacy files, government or school data. |
| Shift_JIS / EUC-JP / ISO-2022-JP | Japanese legacy systems and CSV files. |
| EUC-KR / Windows-1252 | Korean legacy files and Western European text. |
- Convert a file's encoding at any time; saving writes using the current encoding.
- Supports LF, CRLF and CR line endings; the status bar shows the current format.
- UTF-8 BOM and plain UTF-8 are handled separately so Windows files do not show stray characters.
9. Themes and interface languages
Built-in themes include VS Code Dark+/Light+, GitHub Dark/Light, Monokai, Solarized, One Dark, Dracula and Nord. The visual theme editor exposes all 35 color tokens, with JSON import and export. Choosing a theme also applies it to the whole app, so light and dark chrome never need a separate setting.
Built-in themes
- The interface supports six languages: English, Traditional Chinese, Simplified Chinese, Japanese, Korean and Spanish.
- Switching languages re-localizes open windows immediately without a restart.
- Choosing a theme changes both the editor and the whole app between light and dark, or you can follow the system. The light palette now has stronger contrast for the toolbar, tabs and line numbers.
10. Large files and performance
PureEditor is native AppKit with no Electron overhead. A 105 MB text file has been tested; highlighting only processes visible text and the minimap uses density compression.
Measured memory
| Scenario | Footprint |
|---|---|
| Clean launch with one empty editor | ~58 MB |
| One SQL document | ~99 MB |
| Nine large-language tabs after visiting each | ~110–130 MB |
| Nine files as nine legacy windows | ~356 MB |
PureEditor vs VS Code memory
VS Code is an Electron app with a main process, renderer, extension host, utility processes and language servers. PureEditor is native AppKit with one process and grammars loaded on demand. The values below are typical; actual usage depends on extensions, project size and language servers.
| Scenario | PureEditor | VS Code(典型) |
|---|---|---|
| Clean launch with one empty editor | ~58 MB | ~300–500 MB |
| One medium file / small project | ~99 MB | ~400–700 MB |
| Nine files in tabs | ~110–130 MB | ~800 MB–1.5 GB+ |
| Several windows open | ~356 MB(九個舊式視窗) | About 1.5 GB for three idle windows (user reports) |
About this comparison:PureEditor figures are measured with macOS footprint. VS Code figures come from common user reports and Activity Monitor and vary widely with extensions, language servers, project size and open windows. This is an order-of-magnitude comparison for typical text editing, not a lab benchmark on the same machine and project. VS Code's extension ecosystem and IDE features genuinely need more memory.
Why is PureEditor's baseline memory lower?
- Native Swift + AppKit needs no Chromium/Electron renderer or extension host.
- Nine larger grammar packs are embedded as dylibs and load only when a matching language opens, not at launch.
- Highlighting processes only the visible range, and background tabs release parse trees and undo stacks.
- The Hex viewer creates its file cache only when opened, reads just the visible 64 KB pages, and releases them when closed.
- The App Store edition runs no external language servers, Git or shell, reducing resident processes.
If you need a full IDE (TypeScript language services on a large project, a debugger, dozens of extensions), VS Code is still the better tool. PureEditor aims to make opening, editing, searching and writing Markdown native, fast and lightweight.
- Large files reduce background parsing and highlighting frequency to keep typing responsive.
- Background tabs keep only the most recently used parse tree and undo stack.
- Closing a window releases tabs, undo stacks, parse trees, recovery files and session data.
- Undo still works after pasting a large block, and the caret returns to its correct pre-paste position.
11. Binary Files and the Hex Viewer
For .dat, .bin and extensionless files, PureEditor looks at the contents first: real text opens normally, while images, PDFs, Word documents, archives and binary data show a prompt with an “Open as Hex” option. The Hex viewer is a separate read-only window with paging, so it never affects your text tabs or undo history.
- 16 bytes per row. The offset column widens with the file size, and a short final row is still aligned correctly.
- Enter 0x1A2B or a decimal address in the top-right field and press Go or Return.
- Drag to select bytes and press ⌘C to copy a formatted hex dump. Selections over 1 MB copy only the first 1 MB.
- The file is read in 64 KB pages with at most 8 pages cached (about 512 KB). No cache exists until a Hex window is opened.
- Each Hex window is read-only: it never writes back and never enters the text tab session, search index or autosave.
12. Finder and the Menu Bar
PureEditor integrates with macOS: open files from inside the app or directly from Finder.
- Open With:Right-click a text file in Finder → Open With → PureEditor.
- Services menu:Select a file and choose Finder → Services → Open in PureEditor; a new-window variant is also available.
- Menu bar icon:The PureEditor icon in the menu bar provides New Window/Tab, Open File or Folder, Recent, Preferences and Quit. When a window is already open, the first item is New Tab.
- Drag to Dock:Drag a file or folder onto the PureEditor icon in the Dock to open it.
13. Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| New Tab | ⌘T |
| New Window | ⌘N |
| Open File | ⌘O |
| Save | ⌘S |
| Find | ⌘F |
| Replace | ⌘⌥F |
| Find in Files | ⇧⌘F |
| Go to Line | ⌘L |
| Command Palette | ⇧⌘P |
| Go to Symbol | ⇧⌘O |
| Record / Play Macro | ⌥⌘M / ⌥⌘P |
| Zoom In / Out / Reset | ⌘= / ⌘- / ⌘0 |
| Next / Previous Bookmark | F2 / ⇧F2 |
| Sidebar | ⌘0 |
| Split Left/Right | ⌥⌘2 |
| Four Panes | ⌥⌘4 |
| Next Pane | ⌥⌘` |
| Markdown Split Preview | ⌥⌘P |
| Pin Window | ⇧⌘P |
| Toggle Theme | ⌥⌘L |
Common workflows
Find and replace across a project
Press ⇧⌘F for Find in Files, enter a query and include/exclude globs, review the results, then Replace runs a dry run before writing. Undo Last Replace in Files is available if needed.
Write Markdown and export a PDF
Open a .md file, use the Markdown toolbar for headings, lists, code and tables, press ⌥⌘P for split preview, then choose File → Print Markdown Preview to export a PDF.
Edit the top and bottom of a file together
Place the caret at the first spot, press ⌃⌥↓ to add a cursor below, then move to the second spot. Or hold Option and drag for rectangular selection and edit several lines at once.
Handle a UTF-8 BOM file from Windows
The status bar shows the encoding. If stray characters appear at the start, use File → Reload with Encoding → UTF-8, then save as plain UTF-8 to remove the BOM.
Privacy and security
- The App Store edition enables App Sandbox and can only access files and folders you choose.
- Security-scoped bookmarks remember recent files so you do not need to grant access again after relaunching.
- No account, ads, analytics or tracking, and file contents are never uploaded to a server.
- Remote Markdown images and raw HTML are off by default and must be enabled manually.
- The App Store edition downloads no code or grammars; the nine larger grammar packs are embedded and signed.
Still need help?
If you have trouble opening, saving, previewing Markdown or highlighting syntax, check the support FAQ or email us.