How can I customize toolbar with Notepad++
Asked Answered
E

2

17

Is there any way that I could add a button to NP++'s toolbar?

I have a shortcut which I use quite a lot. That would be nice if I could make a button out of it instead of pressing Alt+Ctrl+H each time.

Epperson answered 31/10, 2015 at 4:51 Comment(0)
C
20

There is a plugin "Customize Toolbar" on Plugin Resources, or simply use Notepad++'s Plugin Manager. Its description says the plugin makes it possible that "buttons for Notepad++ or plugin menu commands can be defined using a configuration file." So it depends if your shortcut is a menu or plugin command. You could give this plugin a try.

You could also redefine the shortcut to something simpler, you only need to find and change the shortcut in the "Settings", "Shortcut mapper" dialog.

Cholecystectomy answered 31/10, 2015 at 13:27 Comment(2)
This plugin works great. One thing to note is that the CustomizeToolbar.btn confirmation file might be located in your User / AppData / Roaming directory rather than under the Notepad++ install directory per the pop-up instructions that the plugin gives.Crocidolite
This plugin is awesome. Be sure to download the correct version for your installation, say x64. If you download the wrong version, or UAC prevents writing to %ProgramFiles%, nothing will happen when usingSettings > Import > Import plugin(s)... (no warning or popup). Recommend manual installation (ie. download > unzip > copy to [INSTALL-PATH]\plugins > restart NPP).Herzberg
T
1

You may also customize the right-click menu inside the editor area using the

Settings menu >> Edit Popup ContextMenu.

The issue:

I didn't like how much slower the newer file-tab right-click menu was with:

Open into >> Open Containing Folder in Explorer

(especially now that it's much more hidden by a recent update).

newer tab right-click menu

What to do about it:

So, I simply added this code:

<Item MenuEntryName="File" MenuItemName="Explorer"/> 

such that it's the first item in the popup:

<NotepadPlus>
    <ScintillaContextMenu>
        <Item MenuEntryName="File" MenuItemName="Explorer"/>
        <Item id="0"/>

Now, it is readily available at a moment's notice: Just right-click anywhere in the editing area:

enter image description here

Tequila answered 28/4, 2023 at 15:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.