Notepad++ macro in menu bar with icon - macros

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?

As you said this can be achieved with CustomizeToolbar plugin. Just follow tyhese steps:
Install CustomizeToolbar plugin (you can find it here on Sourceforge)
Restart notepad++
Enable custom buttons checking Plugin/Customize Toolbar/Custom Buttons:
Notepad++ will ask you to restart:
Open %APPDATA%\Notepad++\plugins\config\CustomizeToolbar.btn and add this line: Macro,YourMacroName,,, replacing YourMacroName with the name of your macro
Restart notepad++
A new button should appear in the toolbar:

Related

How to add custom icons in editor action toolbar

I want to add a custom icon on the editor action toolbar in vs code, which would be a link to a command. The icon should be visible alongside the file when any file is open on vscode. How to add the custom icon? Any leads would be helpful
image
Add your custom command inside package.json under "editor/title" and "command". For more details check the following links:
Editor Action
Contribution point

loop through multiple selections and edit individually in vscode

In sublime text I used to use a shortcut that allowed me to tab through my multi selection and edit each element individually.
for example I would cmd+d a word then the shortcut would allow me to tab through each selection and edit them individually.
I haven't used sublime text in a month since I switched and can't even remember the shortcut I used to find the name of that action. so I don't even know if it was a plugin or a built in short cut.
is there a similar shortcut in vscode?
You can multi-select in VSCode using alt+click
(can be changed to cmd+click in "Selection -> Switch to Cmd+Click for Multi-Cursor").
To tab through your selections install the tab-through-selections extension and then use cmd+shift+u to start iterating (alternativley ctrl in Windows), then:
tab to go to the next selection
shift+tab to go to the previous selection
click anywhere to cancel iterating
Hope this helps :)

Eclipse IDE - What are breadcrumbs, and how do I disable them? [duplicate]

How can I disable the Java editor breadcrumb in Eclipse?
If you are referring to the breadcrumbs in the help file of a RCP application, there is only a manual way to do it.
Since Ganymede 3.4M5:
Michael Borgwardt mentions the toolbar icon
Slava Semushin provides a native shortcut based on Ctrl+3+bread, which points directly to the Toggle Java Editor Breadcrumb option.
Shachi reminds us below that you can right-click on any icon on the breadcrumb, and select the entry named "Hide Breadcrumb".
Original answer (manual way, through key mapping)
Find the file org.eclipse.help.webapp\advanced\breadcrumbs.css and replace its contents with.
.help_breadcrumbs {
display: none;
}
For the Java Editor breadcrumb, you need to assign a shortcut to the "Toggle Java Editor Breadcrumb" command (I have tested Alt+B, for instance)
That shortcut will make the breadcrumb bar appear/disappear at will.
With the editor window focussed, look for this icon in your toolbar:
And click on it. That's all. The icon is present by default, but can be deactivated, in which case you have to activated as in MvanGeest's answer.
Another way which works for me at Eclipse Indigo (3.7): press Ctrl+3 and type bread, after that click on item Toggle Java Editor Breadcrumb.
RightClick on any icon on breadcrumb.
There is an option named HIDE BREADCRUMB.
Click it and you are done. :D
Look for this icon in the toolbar:
This button toggles the Breadcrumb view on/off.
(I'm using Eclipse 3.7, and it's there by default)
Here it is :
In the toolbar, toggle bread crumb option.
Something like http://loadcontext.blogspot.com/2008/08/eclipse-34-breadcrumbs-hide-and-show.html?
Customize Perspective, choose the
Commands tab. In the Available command
group, choose Java Editor
Presentation. The Toolbar details
shows the button for Toggle
Breadcrumbs, which looks like a folder
with a C in a circle with a black
triangle on top of it.
Despite my absolute lack of experience with Eclipse, I suppose this setting must appear in other Presentation items too. After the button's enabled, all you have to do is click it. Or not?
Change property breadcrumb.org.eclipse.jdt.ui.JavaPerspective from true to false
in your org.eclipse.jdt.ui.prefs file.
In Juno: type 'Bread' and select 'Toggle Java Editor Breadcrumb'
It very simple just right click in your class editor then select bread crumb or directly right click in top of your class in tool bar then select hide breadcrumb then its done.
When you see the BreadCrumb toolbar, right-click on the green class icon and then from the menu options click on Hide Breadcrumb.

How to show frequently used commands in toolbars under the menu bar in VScode

How to show frequently used commands in toolbars under the menu bar in VScode?
In Visual Studio, frequently used commands are placed in some toolbars. We can click them easily with a mouse, not using keyboard shortcuts.
Is there a way to set up toolbars in VScode like Visual Studio?
No, this is currently not possible (VSCode doesn't have one built-in, and the extension API is rather limited when it comes to customizing UI). There was a feature request for this, but it was considered "out of scope":
Support a real toolbar below the window title with actions (#18042)
Note that the extension API does allow you to customize the buttons shown in the upper right of editors, so that could be a workaround in the meantime:
The contribution point is the editor/title mentioned here. This is how the built-in markdown extension adds the additional Open preview to the Side button for .md files:
The third-party Markdown Shortcuts extension takes this even further, adding controls for editing such as Toggle bold, Toggle italic etc:
I made the extension just for this purpose.. you can add buttons like beautify, list files, undo, redo, save all etc to the editor menu bar in the VSCode. checkout
Shortcut Menu Bar

Adding "open file" button to eclipse toolbar

I know you can add new buttons to the eclipse toolbar by writing a custom plugin but just how would i go about adding a simple "open file" button like most editors have?
I guess I can use this as a template to do what i want, but what's the commandId for the "open file dialog":
How to add undo / redo buttons to toolbar in Eclipse?
thank you!
If you want to have a toolbar button which mimics the behaviour of the menu File->Open File..., then you are searching for the command id
org.eclipse.ui.edit.text.openLocalFile
which you would want to use instead of the command ids for the undo/redo in your example.
I don't believe there is a specific commandId for open file dialog that you can use in the toolbar or menu. You would have to create a class that implements the IHandler interface and use something like the JFileChooser to handle the selection of the file.