Reputation: 17495
I've recorded and saved two macros in Notepad++, giving them Ctrl+B
and Ctrl+Shift+B
shortcuts respectively. First doesn't work (does not playback macro), while second is all fine (restart doesn't help).
Can macros in Notepad++ have "simple" keyboard shortcuts, like Ctrl+B
?
BTW: I'm trying to "emulate" formatting shortcuts (like bold, italics etc.), but for Markdown, not for HTML. That's why Notepad++'s plugins like "WebEdit" won't help me here.
Upvotes: 0
Views: 6107
Reputation: 17495
Following mehow
's answer I found the solution. Ctrl+B
shortcut doesn't work for my macro, because it is used with another command.
Going (in Notepad++) to Settings > Shortcut mapper > Main menu
, locating Go to matching brace
command and setting its shortcut to None
solved the problem. From this moment, each press of Ctrl+B
calls my macro, not that previous command.
Upvotes: 3
Reputation:
Reworded:
You can save a macro with CTRL+B shortcut...
but you can't use the shortcut to same combination to call it back.
It think it's because it seems that key stroke is already used and your own combination is not overridding the original reserved one.
Ctrl-B Go to matching brace
It seems like a bug within notepad++ or not well documented feature.
Upvotes: 5