Community
    • Login

    A new C++ plugin template

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    2 Posts 2 Posters 2.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dailD Offline
      dail
      last edited by

      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:

      1. Install Notepad++ v7.7 (or later)
      2. Install Python (if not installed already)
      3. From a command prompt, run:
      pip install cookiecutter
      cookiecutter https://github.com/dail8859/cookiecutter-npp-cpp-plugin.git
      
      1. You will be asked some basic info (project name, description, etc.) for the new plugin.
      2. Open the newly created .sln file with Visual Studio 2017
      3. Press F5 and 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.

      EkopalypseE 1 Reply Last reply Reply Quote 10
      • EkopalypseE Offline
        Ekopalypse @dail
        last edited by

        @dail - wondering why it is not listed here?

        1 Reply Last reply Reply Quote 2

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors