82
22
Eclipse has a keyboard shortcut which deletes either the current line (if nothing is selected) or all lines which are part of the currently selected text: Ctrl+D.
Is there a way to make Ctrl+D do the same thing in Notepad++?
The best I could do is remap the shortcut to Scintilla's SCI_LINE_DELETE
, but that only deletes one line at a time, even if the selection spans multiple lines.
1@RØŠÐÎ
SCI_LINEDELETE
is whatCtrl+Shift+L
was mapped to. I tried that but it only deleted (without copying to clipboard) the first of the selected lines, similar to OP. Am I missing something? – jinglesthula – 2016-04-21T15:13:01.3406Why isn't this in the menu
Edit > Line Operations
– aliopi – 2017-11-24T07:03:49.01016Brilliant! Now I just have to find what
Ctrl+L
is mapped to ... *edit* aha, it's mapped toSCI_LINECUT
. That was literally the next Scintilla command belowSCI_LINE_DELETE
. – Matt Ball – 2011-03-16T17:17:25.78728Please note that
Ctrl+L
will cut the line (copy it into your clipboard). To actually delete the line isCtrl+Shift+L
, this will delete the selected lines without overwriting your clipboard. – Rosdi – 2013-01-11T00:42:05.160