BramscoChill
BramscoChill

Reputation: 403

Notepad++ macro in menu bar with icon

I'm looking for a way to add a macro as an icon in the toolbar.

It seems possible to bind keys to the macro, customize the toolbar with Customize Toolbar and use toolbarIcons.xml to customize it. But none of those options provide an option to add a recorded macro as an icon to the toolbar in Notepad++.

Any suggestions?

Upvotes: 4

Views: 3101

Answers (1)

Andrea
Andrea

Reputation: 12355

As you said this can be achieved with CustomizeToolbar plugin. Just follow tyhese steps:

  1. Install CustomizeToolbar plugin (you can find it here on Sourceforge)
  2. Restart notepad++
  3. Enable custom buttons checking Plugin/Customize Toolbar/Custom Buttons:

    enter image description here

  4. Notepad++ will ask you to restart:

    enter image description here

  5. Open %APPDATA%\Notepad++\plugins\config\CustomizeToolbar.btn and add this line: Macro,YourMacroName,,, replacing YourMacroName with the name of your macro
  6. Restart notepad++
  7. A new button should appear in the toolbar:

    enter image description here

Upvotes: 6

Related Questions