Delete line without adding to clipboard?

前端 未结 3 1446
半阙折子戏
半阙折子戏 2021-01-01 09:19

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 enti

相关标签:
3条回答
  • 2021-01-01 09:45

    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?

    0 讨论(0)
  • 2021-01-01 09:46

    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.

    0 讨论(0)
  • 2021-01-01 09:51

    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

    0 讨论(0)
提交回复
热议问题