A new C++ plugin template
-
Over the years I’ve created more than a few plugins (some available for download…and several that were never finished or made publicly available). Each time I ended up taking an old project, hacking it up, grepping through all the files and renaming everything. This can be quite tedious and error prone.
I’ve created a template for C++ plugins based on my experience doing plugin development. This isn’t just a generic template to modify yourself, this is a cookiecutter template that can dynamically generate a new plugin project for you. To create your own plugin:
- Install Notepad++ v7.7 (or later)
- Install Python (if not installed already)
- From a command prompt, run:
pip install cookiecutter cookiecutter https://github.com/dail8859/cookiecutter-npp-cpp-plugin.git- You will be asked some basic info (project name, description, etc.) for the new plugin.
- Open the newly created
.slnfile with Visual Studio 2017 - Press
F5and enjoy.
Visual Studio will build and copy the newly created DLL file into plugin directory of Notepad++. It will also start the Notepad++ application for debugging, meaning you can set breakpoints and step through your plugin source code.
This is still in development and not complete, however it quite usable and will create a project you can instantly run. Hopefully this template can be refined and incorporate other best practices for creating C++ plugins.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login