• Link to X Link to X Link to X
  • Link to Facebook Link to Facebook Link to Facebook
  • Link to Youtube Link to Youtube Link to Youtube
  • Link to Reddit Link to Reddit Link to Reddit
  • Link to Rss Link to Rss Link to Rss
  • Blog
  • Support
    • FAQ
    • Help (HTML)
    • Manual (PDF)
    • Forums (read-only)
    • Library (GitHub)
    • Update/Resend Registration Keys
    • Contact Us
  • About
    • About Emurasoft
    • Meet the Team
    • Other Products
    • Awards
    • Privacy Policy
    • Go to Emurasoft Customer Center
  • 🌐 English
    • 日本語
    • 한국어
    • Deutsch
    • 简体中文
    • 繁體中文
  • Download
  • Buy
  • Features
  • Menu Menu

AI Assisted Writing

Version 24.0 introduced AI macros using the OpenAI API (hereafter abbreviated as “API”). Version 24.1 introduces an AI assisted writing feature that predicts and autocompletes what you are typing next while composing text. AI autocomplete can reduce typing effort and improve writing speed. I am writing this text using EmEditor and am personally experiencing the convenience of the AI assisted writing feature.

By default, the AI functionality is disabled. To enable this feature, you need to check the Enable AI option on the AI page of the Customize dialog box in EmEditor, and agree to allow OpenAI to process the text data within documents opened in EmEditor. Please read OpenAI’s Privacy Policy, and if you agree, click the Continue button. According to this privacy policy, data sent to the API will not be used for training OpenAI’s models.

Added the “AI” page to the “Customize” dialog box.

Next, enter your API key in the OpenAI API Key text box. If you are logged into OpenAI, you can obtain your API key here. It is recommended to store the API key in the ‘OPENAI_API_KEY‘ environment variable, but if you use the portable version of EmEditor or do not wish to share the key with other apps because you are sharing the computer, you can disable the Use “OPENAI_API_KEY” environment variable option and save the API key exclusively for EmEditor. By default, gpt-4-turbo-preview is the preferred model. It offers more accurate suggestions than gpt-3.5-turbo. For writing in foreign languages, selecting gpt-4-turbo-preview is advisable. Also, to enable this feature, you must activate the AI assisted writing option on the General page of each configuration properties. It is enabled by default for Text, Markdown, and HTML configurations.

Added the “AI assisted writing” checkbox to the “General” page of the configuration properties.

When this feature is enabled, as you type, AI will automatically predict and suggest the next text. The suggested text appears in gray by default, and you can accept the suggestion by pressing the Tab or End key. If you want to accept only part of the suggested text, press the Right arrow key for the number of characters to accept, or Ctrl+Right to accept one word. Pressing the Delete key will remove the first character of the suggested text. Pressing the Esc key or another key cancels the suggestion. Moreover, if you want to force a prediction by AI when no suggested text is displayed, or request a different suggestion, press Ctrl+Space.

Added the ability to complete a word or phrase by using the OpenAI API.

Simply opening a file in EmEditor does not call the API. It only starts calling the API when you begin typing characters. Moreover, the following conditions must all be met to utilize this functionality:

  • Running EmEditor Professional edition
  • The Enable AI option is set
  • The AI assisted writing option is set
  • Not recording or running a macro
  • The Read-only option is turned off
  • No text is selected
  • Not editing a very large file
  • Not in CSV mode
  • Not comparing files
  • The document being edited is active
  • The cursor is at the end of line
  • Have started typing characters
  • After pausing typing (about 100ms)
  • Have not pressed the Esc key to cancel a suggestion
  • Not just clicked elsewhere with the mouse or executed another command

As described above, we aim to minimize the frequency of API usage. However, using the API still incurs a fee payable to OpenAI, calculated in tokens. Each suggestion consumes about 100 tokens for input and about 10 tokens for output. According to current pricing (as of August 2024), using the default gpt-4o model consumes $5.00 / 1 million input tokens. Opting for gpt-4o-mini significantly reduces the cost to approx. $0.150 / 1 million input tokens. For reference, using ChatGPT Plus provided by the same company incurs a monthly fee of US$20 or more, but if you only use the API with EmEditor, you don’t need to pay for ChatGPT Plus. Using AI with EmEditor is unlikely to exceed US$20 a month, making it an economically viable option. Using the AI macro introduced in v24.0, you can ask EmEditor any free-form questions just like with ChatGPT Plus, making it possible to completely replace ChatGPT Plus with EmEditor.

Please also see Powerful Generative AI Client (PDF)

← Extensibility AI Toolbar →

  • Text Editing
    • Batch Replace
    • Binary Editing
    • Bracket/Quotation Mark Auto-Complete
    • Clipboard History
    • Compare Documents
    • EditorConfig Support
    • Filter Bar
    • Find and Replace
    • Format Selection
    • Fuzzy Matching
    • Language Server Protocol Support
    • Multiple Selection Editing
      • How to use Vertical Editing
    • Number Range Expression for Find and Replace
    • Regular Expressions
    • Syntax Checker for HTML, CSS, JSON, XML
    • Syntax Highlighting
  • Powerful CSV Tools
    • Autofill
    • Combine Lines
    • Combine/Split Columns
    • CSV Converter
    • Custom CSV formats
    • Delete Duplicate Lines
    • Extract Columns
    • Extract Frequent Strings
    • Flash Fill
    • Freeze header
    • Insert lines/columns
    • Join CSV
    • Manage Columns
    • Numbering
    • Pivot table
    • Sort
    • Transpose
  • Large File Support
    • Fast Processing of Large Files
    • Large File Controller
    • Large Files up to 16 TB
    • Lightweight, multithreaded design
    • Split and Combine Files
  • User Experience
    • Configurations
    • Customizable Interface
    • Customizable toolbars
    • Document Groups
    • International language and locale support
    • Markers
    • Quick Launch
    • Split window
    • Start Window
    • Tabbed Design
    • Workspace Memory
  • Extensibility
    • AI Assisted Writing
    • AI Toolbar
    • Chat with AI
    • External Tools
    • Plug-ins
      • CommitList Plug-in
      • Explorer Plug-in
      • HTML Bar Plug-in
      • Open Documents Plug-in
      • Projects Plug-in
      • Search Plug-in
      • Snippets Plug-in
        • How to Use Zen Coding
      • Web Preview Plug-in
      • Word Complete Plug-in
      • Word Count Plug-in
    • Scriptable Macros
  • More Features
    • Base64
    • Bookmarks
    • Character Check
    • Character Code Value
    • Customer support
    • Drag and Drop
    • Error Handler and Crash Recovery
    • Fast 64-bit Build
    • Full Screen View
    • Grab Text
    • Half-width/Full-width conversion
    • HTML Character References
    • Jump
    • Markdown Editor
    • Marks
    • Matching Tag Highlight
    • Messaging (plug-in)
    • MIME Encoded-Word
    • Multiple File Encoding Conversions
    • Narrowing
    • Offline Registration
    • Outline
    • Percent-encoding
    • Pin to List
    • Portability Options
    • Privacy-first
    • Quick Start
    • Save to Protected Folder
    • Spellcheck
    • Status Window
    • Tooltip to show HTML/XML character references
    • Unicode Normalization
    • Unicode Support
    • Universal Character Name
    • Uppercase/Lowercase conversion
    • Wildcard Support
    • Windows 11/10 Compatibility
    • CSV
  • History
    • New in Version 26.1
    • New in Version 26.0
    • New in Version 25.4
    • New in Version 25.3
    • New in Version 25.2
    • New in Version 25.1
    • New in Version 25.0
    • New in Version 24.5
    • New in Version 24.4
    • New in Version 24.3
    • New in Version 24.2
    • New in Version 24.1
    • New in Version 24.0
    • New in Version 23.1
    • New in Version 23.0
    • New in Version 22.5
    • New in Version 22.4
    • New in Version 22.3
    • New in Version 22.2
    • New in Version 22.1
    • New in Version 22.0
    • New in Version 21.9
    • New in Version 21.8
    • New in Version 21.7
    • New in Version 21.6
    • New in Version 21.5
    • New in Version 21.4
    • New in Version 21.3
    • New in Version 21.2
    • New in Version 21.1
    • New in Version 21.0
    • New in Version 20.9
    • New in Version 20.8
    • New in Version 20.7
    • New in Version 20.6
    • New in Version 20.5
    • New in Version 20.4
    • New in Version 20.3
    • New in Version 20.2
    • New in Version 20.1
    • New in Version 20.0
    • New in Version 19.9
    • New in Version 19.8
    • New in Version 19.7
    • New in Version 19.6
    • New in Version 19.5
    • New in Version 19.4
    • New in Version 19.3
    • New in Version 19.2
    • New in Version 19.1
    • New in Version 19.0
    • New in Version 18.9
    • New in Version 18.8
    • New in Version 18.7
    • New in Version 18.6
    • New in Version 18.5
    • New in Version 18.4
    • New in Version 18.3
    • New in Version 18.2
    • New in Version 18.1
    • New in Version 18.0
    • New in Version 17.9
    • New in Version 17.8
    • New in Version 17.7
    • New in Version 17.6
    • New in Version 17.5
    • New in Version 17.4
    • New in Version 17.3
    • New in Version 17.2
    • New in Version 17.1
    • New in Version 17.0
    • New in Version 16.9
    • New in Version 16.8
    • New in Version 16.7
    • New in Version 16.6
    • New in Version 16.5
    • New in Version 16.4
    • New in Version 16.3
    • New in Version 16.2
    • New in Version 16.1
    • New in Version 16.0
    • New in Version 15.9
    • New in Version 15.8
    • New in Version 15.7
    • New in Version 15.6
    • New in Version 15.5
    • New in Version 15.4
    • New in Version 15.3
    • New in Version 15.2
    • New in Version 15.1
    • New in Version 15.0
    • New in Version 14.9
    • New in Version 14.8
    • New in Version 14.7
    • New in Version 14.6
    • New in Version 14
    • New in Version 13
    • New in Version 12
    • New in Version 11
    • New in Version 10
    • New in Version 9
    • New in Version 8
    • New in Version 7
    • New in Version 6
    • New in Version 5
    • New in Version 4
    • Basic Features
  • EmEditor Free
  • Compare Desktop Installer (MSI), Desktop Portable, and Old Store App (UWP) Versions

Download and try the “world's fastest text editor” now. (Source: ZDNet)

Download Download Free Download

Copyright © 1995-2026 by Emurasoft, Inc.
Download | Buy | Features | Blog | Support | About | Privacy Policy
日本語 | Deutsch | 한국어 |简体中文 | 繁體中文

Scroll to top Scroll to top Scroll to top