A Premium WinUI 3 Desktop Text Editor Shell with WebView2 Hybrid Core
TxtAIEditor is a high-performance, elegant, and modern desktop text editor shell built for Windows. It marries the robust, native desktop capabilities of WinUI 3 (.NET 10.0) with the rendering flexibility of a WebView2-based custom core.
Designed for developers, writers, and power users, TxtAIEditor provides a fluid, distraction-free environment. It features standard workspace tools like a live Markdown/HTML/LaTeX previewer, a built-in terminal, comprehensive Git integration, multi-provider secure AI assistance, and a virtualized editor core capable of opening and editing files from small snippets to 200MB+ logs seamlessly.
- Massive File Support: Instantly open and edit extremely large files (200MB+ logs or source code) with zero lag, keeping the editor highly responsive.
- Virtual Scrolling: Renders only visible viewport lines plus an overscan buffer, keeping DOM elements minimal and rendering fast.
- Syntax Highlighting: Premium, high-performance syntax coloring for Markdown (headers, lists, blockquotes, bold/italic, code blocks, links), C#, JavaScript, Python, HTML, CSS, LaTeX, and many more.
- Auto-Completion & Snippets: Intelligent auto-completion suggesting variables, keywords, and customizable snippets (such as Markdown tables, LaTeX matrices, HTML5 shells, C# notifier properties) that insert seamlessly via Enter or Tab.
- Rich Markdown Toolbar: Quick-apply styling (bold, italic, underline, list, color, tables) to selected text.
- Smart Background Auto-Save: Automatically saves modified files within the active Git repository folder every 5 seconds.
- Workspace-Aware: Only triggers when a Git repository folder is opened in the editor.
- Secure Note Compatibility: Opens and saves
SECURE_NOTE_V1encrypted note files compatible with the Simple Memo encryption format. - Password Prompt on Open: Encrypted files ask for a password before the decrypted text is loaded into the editor.
- Encrypted Save Preservation: Saving an encrypted tab writes the file back in encrypted form instead of leaking plain text to disk.
- Tab Lock Indicator: Encrypted tabs show a lock icon at the front of the tab.
- Password Management: Right-click the tab or lock icon to encrypt a plain tab, change the password, or remove encryption. Password changes and removal require matching double-entry confirmation.
- Mica Backdrop & Dark Mode: Native Windows themes using a high-fidelity Mica backdrop.
- Multi-Pane Splitters: Easily adjust sidebars, preview sections, and terminal panes via interactive C# split-controls.
- Always on Top & Sticky Notes: Pin your editor window or transform to sticky notes directly from the toolbar.
- Live Renderer: View Markdown, HTML, Aozora or LaTeX (powered by KaTeX) in a split view or an external browser.
- Grid Editor Shell: Automatically renders
.csvfiles into a premium, highly responsive interactive spreadsheet-like grid instead of raw comma-separated text. - Column & Row Multi-Select: Click row numbers or column headers to select entire rows/columns, with support for range dragging and multi-selection using
CtrlandShiftkeys. - Formula Bar & Name Box: Built-in toolbar at the top showing the current active cell coordinates (e.g.,
A1,D12) along with an editable formula bar for writing and viewing values. - Dynamic Column Resizing: Drag the border of any column header to resize column widths in real-time.
- Native Spreadsheet Navigation: Use standard hotkeys to navigate the grid:
Tab/Shift + Tabto move focus horizontally.Arrow Keys(Up,Down) to navigate vertically.Enterto commit input and move focus down (auto-appends a new blank row at the end of the file), andShift + Enterto move focus up.
- Multi-Provider: Connect with Gemini, OpenAI, or local LM Studio endpoints.
- Secure Storage: API keys are securely saved via native Windows Credential Manager.
- AI Translation: Fast translation of selected text to/from Korean, English, Japanese, Chinese, French, Spanish, German, etc. while safely preserving code structure, markdown formatting, and commands.
- AI Custom Commands: Ask questions or give instructions to the AI.
- Direct Input: Type a short prompt in the input box and press Send.
- Instruction Tabs (up to 4): Type your instruction in the editor, then click the οΌ button to save it as a reusable tab. After creating a tab, click Add File Context to attach the current file's content to that tab. Each tab stores its own instruction text and optional file context. Click a tab to switch, click Γ to delete.
- Instruction Presets: Save and load reusable prompt templates (Presets) stored under
%USERPROFILE%\.TxtAIEditor\presets.json.- Tab-Based Loading: Selecting a preset automatically maps it to a new dedicated instruction tab without overwriting your active typing area.
- Dynamic Prompt Merging: Combines the active preset content with any manual additional instructions typed in the custom text box during transmission.
- CRUD Management: Directly create new custom presets, edit existing ones via multiline dialog popups (optimized with fixed heights to prevent composition flickering), or delete them directly from the preset list.
- Context Actions: Quick AI actions (Explain, Refactor, Summarize, Fix) on selected text.
- Solve complex, multi-step coding tasks automatically by allowing the AI assistant to run workspace tools (file search, read/write, terminal command execution, and web search/retrieval).
- Git Repository Requirement: Agent mode can only be activated and used inside a directory containing a Git repository (
.git). - Exa Web Search & Fetch: Supports real-time web search and webpage content extraction powered by the Exa API or Exa MCP server, allowing the agent to find live documentation, code samples, and up-to-date information. (Configurable via Exa API Key and Endpoint in the settings).
- Recommended Installation: For the best performance and compatibility, it is highly recommended to install PowerShell 7 (
pwsh) and ripgrep (rg).
- Git Repository Requirement: Agent mode can only be activated and used inside a directory containing a Git repository (
- Shell Profiles: Launch PowerShell, Command Prompt, Git Bash, or WSL sessions directly beneath your editor canvas.
- Path Syncing: Automatically matches the terminal's working directory with the active workspace.
- VS Code-style Interaction: Right-click to paste, right-click a selection to copy, and Ctrl+click terminal paths to open them.
- Status Tracker: View staged/unstaged changes, stage/unstage files, execute commits, and push to remotes.
- History Viewer: Visual repository branch and commit history logs.
- File & Folder Bookmarks: Pin any file or folder to your Favorites panel for instant one-click access β no more digging through deep directory trees.
- Right-Click to Add: Simply right-click any file or folder in the Explorer panel and select "Add to Favorites" from the context menu.
- Global Lookup: Folder-wide multi-file search with Match Case, Whole Word, and Regex filtering.
- Jump-to-Source: Double-click search results to open the file and focus the exact line.
- Smart Outline Generator: Automatically parses and generates a structural document outline based on the active file:
- Markdown: Maps H1 through H6 headings (
#to######) to hierarchical tree levels. - Aozora Bunko: Supports Japanese Aozora text files, parsing block/inline/wrapped headings while cleaning ruby markup (
γ...γ,ο½) and tags for a distraction-free overview. - Code Outline: Builds structural trees of classes, methods, structs, or functions for major languages including C#, Python, JavaScript/TypeScript, and Go (with a general signature fallback for others).
- Markdown: Maps H1 through H6 headings (
- Interactive Jump: Double-clicking any outline item instantly scrolls the viewport to focus the target line.
- Native support for English (
en-US), Korean (ko-KR), and Japanese (ja-JP). The user interface automatically adapts to your system language or preferred settings for a fully localized desktop experience.
TxtAIEditor is designed for speed and productivity, packing standard IDE shortcuts and premium interactive elements.
| Shortcut | Description |
|---|---|
Ctrl + N |
New Tab |
Ctrl + S |
Save File |
Ctrl + Shift + S |
Save As |
Ctrl + O |
Open File |
Ctrl + F |
Find / Search |
Ctrl + W |
Close Tab |
Ctrl + P |
|
Ctrl + 1 |
Toggle Left Panel |
Ctrl + 2 |
Toggle Right Panel |
Ctrl + ` |
Toggle Terminal |
Ctrl + Z |
Undo |
Ctrl + Y |
Redo |
Ctrl + C |
Copy |
Ctrl + V |
Paste |
Ctrl + X |
Cut |
Ctrl + Mouse Wheel |
Zoom In / Out |
Ctrl + Enter |
Send AI Prompt |
F9 |
Toggle Always on Top |
F10 |
Toggle Theme (Dark / Light) |
F12 |
Toggle Sticky Note Mode |
- Column Drag Selection:
- Hold
Alt+ Mouse Drag (orShift + Alt+ Mouse Drag) to select text in a vertical block or column. - This places cursors on multiple consecutive lines, enabling you to edit, write, or delete text across multiple rows simultaneously.
- Hold
- Custom Text Color Selector:
- Right-Click on the
TextColorbutton to summon the native Color Picker dialog, allowing you to select and configure custom text colors precisely.
- Right-Click on the
- AI Target Language Selector:
- Right-Click on the translate button to open a context menu enabling you to switch target translation languages (Korean, English, Japanese, Chinese, French, Spanish, German) instantly.
- Add to Favorites:
- Right-Click any file or folder in the Explorer panel and choose "Add to Favorites" to instantly pin it to your Favorites sidebar for quick access.
You can download the latest installer (built using Inno Setup) from the Releases Page.
To build and run TxtAIEditor locally, make sure you have:
- Windows 10 / 11
- Visual Studio 2022 (v17.10 or later recommended)
- .NET 10.0 SDK
- Windows App SDK component installed inside Visual Studio.
- WebView2 Runtime (installed by default on modern Windows).
- Clone the Repository:
git clone https://github.com/kirinonakar/TxtAIEditor.git cd TxtAIEditor - Open the Solution:
Open the
TxtAIEditor.slnx(orTxtAIEditor.csproj) inside Visual Studio. - Restore & Build:
Visual Studio will automatically restore NuGet packages (such as
Microsoft.WindowsAppSDK). - Run:
Set the startup project to
TxtAIEditorand pressF5to build and run in unpackaged mode.
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2026 kirinonakar. All rights reserved.
This software includes Mermaid, xterm.js, and KaTeX.
Mermaid
License: MIT License
Copyright (c) 2014 - 2022 Knut Sveidqvist
xterm.js
License: MIT License
Copyright (c) 2017-2019, The xterm.js authors
Copyright (c) 2014-2016, SourceLair Private Company
Copyright (c) 2012-2013, Christopher Jeffrey
KaTeX
License: MIT License
Copyright (c) 2013-2020 Khan Academy and other contributors
The MIT license text below applies to the third-party components listed above.
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

