Remove/Delete current line in Notepad++
I also need a string for shortcuts.xml file so this would show up under the Run menu.
This part cannot be done. The Run menu only contains external commands.
Specifically i want to make a context menu option that (on rightclick) removes/deletes the current line.
This can be easily done using a macro:
Click
Macro -> Start Recording
.-
Mimic deleting the current line by pressing the following keys:
Home, Home, Shift + End, Del, Del
(The second Home is to remove possible indentation.)
Click
Macro -> Stop Recording
.Click
Macro -> Save Current Recorded Macro...
.Choose a
macro_name
(mandatory) and a key combination (optional).Click
OK
.-
Edit the
contextMenu.xml
and add the following line:<Item MenuEntryName="Macro" MenuItemName="macro_name"/>
Restart Notepad++.