Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete line without adding to clipboard?

Tags:

notepad++

Ctrl-L deletes current line; I use this constantly.

Unfortunately, it also replaces the text that I have already copied. Is there another shortcut to delete an entire line, but not add the contents to my clipboard?

like image 919
Evil Elf Avatar asked Feb 17 '11 16:02

Evil Elf


People also ask

How do you delete a line of text?

Click the line, connector, or shape that you want to delete, and then press Delete. Tip: If you want to delete multiple lines or connectors, select the first line, press and hold Ctrl while you select the other lines, and then press Delete.


2 Answers

Ctrl + Shift + L

You can swap this around in Macro - Modify Shortcut/Delete Macro - Scintilla commands, and then around line 90, there's ones for SCI_LINECUT and SCI_LINEDELETE

like image 175
Ben Avatar answered Sep 17 '22 19:09

Ben


By default Ctrl + Shift + L however you can change it to something like Shift + Del by going to the Settings menu, Shortcut Mapper, click on the Scintilla commands tab, scroll to command 90, "SCI_LINEDELETE" and adjust the shortcut from there. Valid as of Notepad++ 6.9.1. If it changes comment and I'll update my answer. You'd think people would answer with how to change a shortcut in a customizable editor?

like image 36
John Avatar answered Sep 19 '22 19:09

John