NppOpenAI — OpenAI Plugin for Notepad++ (ChatGPT)

If you want to make use of OpenAI GPT models with Notepad++ you can make use of the NppOpenAI plugin.


Notepad++ OpenAI GPT Plugin

NppOpenAI is a simple yet powerful plugin that allows you to communicate with OpenAI directly from your favorite code editor, Notepad++. This integration enhances your coding experience by providing AI-generated responses right within the editor.

  • How It Works: Simply select your text in Notepad++, press Ctrl + Shift + O, and receive AI-generated responses in seconds. (Additional settings required.)
  • Examples: You can ask the AI to create functions in various programming languages, such as "Please write Python code to add two numbers".
  • Configuration: To remove your original question/request, uncheck Plugins -> NppOpenAI -> Keep my question. For additional settings, edit the NppOpenAI.ini file from Plugins -> NppOpenAI -> Edit Config.
  • System Messages: To send instructions with your question, edit the NppOpenAI_instructions file from Plugins -> NppOpenAI -> Edit Instructions.
  • Chat Feature: Enable chat by clicking Plugins -> NppOpenAI » Chat: off and checking Use chat. Adjust the chat limit for optimal token usage.


How to Configure NppOpenAI

Adding OpenAI API Key Configuration File Notepad++
  1. Open the configuration file NppOpenAI.ini from Plugins -> NppOpenAI -> Edit Config and edit the [API] section.
  2. Track your token usage with the total_tokens_used setting in the [PLUGIN] section.
  3. After editing and saving the configuration files, always load your settings via Plugins -> NppOpenAI -> Load Config.


In conclusion, NppOpenAI enhances Notepad++ by integrating OpenAI's capabilities, making it a valuable tool for developers looking to leverage AI in their coding workflow. With easy configuration and powerful features, it significantly boosts productivity and creativity.

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!