Delete line without adding to clipboard?

2020-02-26 13:58发布

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?

标签: notepad++
3条回答
对你真心纯属浪费
2楼-- · 2020-02-26 14:34

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

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2020-02-26 14:46

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?

查看更多
Explosion°爆炸
4楼-- · 2020-02-26 14:53

Ctrl + Shift + Backspace deletes to the start of the line, and Ctrl + Shift + Delete deletes to the end of the line. So you could press both in quick succession. Or Home/End and one of the combos.

查看更多
登录 后发表回答