Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
A new plugin - Customize Toolbar - is now available for download at:
This plugin allows the Notepad++ toolbar to be fully customised by the user, and includes twelve additional buttons for frequently used menu commands.
All buttons on the toolbar can be customized, whether standard buttons, additional buttons, or buttons belonging to other plugins.
When this plugin is first installed, the twelve additional buttons are not shown on the toolbar, but are available in the Customize Toolbar window.
many thanks for this helper :)
That's realy great to be able to remove or insert or move the toolbar icons around and adjust them to ones preferences.
As for my first testings it works fine with the current version but also with NPP++ 5.8.6.
What I missed was a 'set to default' - but that was easily done by deleting the 'CustomziseToolbar.dat'.
Is there any chance you'd enable your plugin to work with the ANSI version as well?
I still prefer it much over the UNI version.
greetings ~ Vera
Nice work, well done!
There is a 'set to default' facility - in the Customize Toolbar window, click on the 'Reset' button - this should reset the toolbar layout as if the Customize Plugin was not installed.
I will look into providing an ANSI version as well.
Aah - right underneath that close button.
Sorry I missinterpreted this reset as 'reset current changes' but not the whole and didn't regard it furtheron.
Tested - works fine :)
and happy to hear you'll support ANSI as well soon :)
Nice plugin, thanks!
Would that concept allow future plugin versions to create a button from every available menu command in NP++?
There are some commands deeply buried in the menu I use rather often (TextFX, Edit commands, Language-switches); would be nice to have them as a button, too.
Hello Dave, I just started using Notepad++ today. One of the first things I looked for was the capability of customizing the toolbar, your .DLL did the trick. One problem I noticed though: I customized the standard icon set to suit my needs. Then I used Preferences to take a look at the large icons but made no changes. When I went back to the standard icon set they had reverted to the default. Not a big deal, but now that I've customized my standard icons again I need to remember to NOT take a look at the other icon sets.
Nice job otherwise!
Thank you very much for this helpfull plugin! Would it be possible, to add an icon to switch displaying the line number margin on or off? It would be a great deal.
I'm afraid it is not possible to add an icon to switch displaying the line number margin on or off. This is because this function is not a menu command, it is only available in the Settings > Preferences dialog, which is not accessible to a plugin.
At the moment, I can't see a perfect fix for this - there is no way for a plugin to find out if the icon set has been changed by the "Preferences…" dialog - at least not until after a restart (the Notepad++ preferences are saved to config.xml on exit).
However, the next version of Customize Toolbar will save the customized toolbar on exit from the "Customize…" dialog, instead of saving it on exit from Notepad++. This has the advantage that if the user customizes the toolbar with Standard Icons, and subsequently changes to Big Icons and back to Standard Icons without any further customizations, then the original customizations can be reinstated by exiting and restarting Notepad++.
It is available, because it once could be reached through a menu and the code is still here.
lParam must be 1 or 2. The value isn't used though.
The only preferences you can get at in this manner are:
* toggle line number
* toggle symbol margin
* set fold margin style
* enable current line highliting
* vertiacl edge settings
* wrap indent mode
Check the code for void Notepad_plus::specialCmd(int id);
A new version (1.4) of Customize Toolbar has been released which includes fixes for the issues you reported. There is now an ANSI variant of the plugin and the issues when switching between Small/Big/Standard Icons have been resolved.
There is a new post on this forum about this new version of Customize Toolbar.
hey dave i've encountered a problem with this plugin - after i copy it to the directory and start up notepad++ my custom buttons that i added in get 'grayed out' and are no longer pressable. am i doing something wrong/is there some setting i need to change?
here are before and after images showing what happens. the custom buttons are to the right of the normal ones (except the spellcheck one, which is perhaps from another plugin):
i'd like to remove some of the default buttons but need to keep the custom buttons. also is there any way you can add an additional bar to the button toolbar that would appear right below the default one?
How to add my own button to the toolbar apart of these twelve additional buttons?
Unfortunately, it is not possible to add your own buttons. However, if you only have 12 additional buttons, the you are not using the latest version (1.7) of Customize Toolbar which has 18 additional buttons and several bug fixes.
Both ANSI and Unicode variants of version 1.7 are available for download at:
New features, changes and fixes in Version 1.7:
- Fix: Buttons on the toolbar are no longer greyed out if the Menu Bar is hidden.
- Fix: Plugin buttons are no longer misplaced if their corresponding shortcuts are re-mapped.
- Fix: Plugin buttons with identical names are now correctly differentiated by their plugin names.
After installing this version, it is necessary to reset and re-customize the toolbar.
Thank you for version 2.0 and for new buttons! I have a small request. Could you also add button "Compare" and "Clear results" from Compare plugin and change behaviour of button "Spaces to tabs". It should replace four spaces to one tab, but not all spaces. There is a such button in NotepadSharp plugin.
I agree that it would be nice to have buttons for "Compare" and "Clear Results". However, the additional buttons included with the Customize Toolbar plugin are only for Notepad++ built-in commands (which have static command numbers). It would be more difficult to include these two buttons for the Compare plugin (which have dynamically generated command numbers). It would be better to request the developer of the Compare plugin to include these two buttons within the plugin.
I also agree that the standard "Space to TAB" function does not work in a very useful way, and it would be nice to have a button for the "Leading Spaces to TABS" function in the Notepad# plugin. Again, it would be better to request the developer of the Notepad# plugin to include these two buttons within the plugin.
I believe that I understand what you're referring to when explaining that it may be too difficult to add buttons from external plugins into your own. I'd be willing to tackle this in my own plugin, but I don't know how to actually create the button on the bar. I was hoping to take a peek at your source code to see how to go about doing that. Is that available or could you tell me how I could go about doing that?
Thanks for the work you have done on this plugin Dave. Could you add a "Select All" button to the next version?
Hi Driver , awakeintosleep , turtleknee ,
I have had quite a few similar requests either to add buttons for more of Notepad++’s standard menu commands, or to add buttons for other plugin’s menu commands.
I think the sensible solution is to add a “user-defined button” feature to my Customize Toolbar plugin.
This feature would require the user to:
- prepare a simple configuration file (defining the menu command name and the button icon image file name)
- provide a 16x16 .bmp image for the button icon
For example, the entry in the configuration file for Notepad++’s “Select All” menu command would look something like:
Would this solution meet your requirements?
That would be great! This would meet the expectations of all concerned. Thank you :)
Is it possible to do what CChris in reply 11 wrote? An icon to switch line number margin on or off would be great!
It is available, because it once could be reached through a menu and the code is still here.
With Customize Toolbar 3.0, it is possible to create a user-defined custom button for any Notepad++ menu command or any plugin menu command, using a configuration file (…\plugins\config\CutomizeToolbar.btn). However, this does not help in this case, because the "special" preferences commands (e.g. Toggle Line Number) do not have corresponding menu commands.
Even so, I think it will be possible to provide a toolbar button for Toggle Line Number, although it would have to be implemented differently to the way CChris suggested, in order to integrate with the architecture of Customize Toolbar.
I will investigate further.
Hi Driver, awakeintosleep, turtleknee,
With Customize Toolbar 3.0, it is possible to create a user-defined custom button for any Notepad++ menu command or any plugin menu command, using a configuration file (…\plugins\config\CutomizeToolbar.btn).
Click on Plugins > Customize Toolbar > Custom Buttons to enable and get help for this feature.
You can download Customize Toolbar 3.0 from:
The 3.0 is great.
"Custom buttons for Notepad++ or plugin menu commands can be defined using a configuration file, and there is a menu option to enable/disable this feature."
If I want to add a new button, e.g., explorer button, the command would like below:
Run,Open containing folder,,,notepad++.bmp
but how do I know which icon name to set for it? (I'm using the Standard Icons set)
How do I know the standard icon name to set??