How to delete the current line and add a new line in Notepad++?

老子叫甜甜 提交于 2019-12-02 21:34:40
Gang Yin

Ctrl + L shall be able to cut the current line and Ctrl + Shift + L shall be able to remove the current line.

You can see and change hotkeys in Settings > Shortcut Mapper... > Scintilla Commands.

The version of my Notepad++ is 6.1.1.

Jim Aho

Ctrl + L will cut the line.

Ctrl + Shift + L will delete the line (i.e. not copying it to clipboard).

Credits to @BobStein-VisiBone and @RyanGoldstein above.

Please note this works in more applications than just Notepad++!

Victor Barrantes

Question #1 Ctrl + L or Ctrl + Alt + L as already answered

Question #2 Enter, will add a new empty line and align the cursor to previous

if you want to delete line you can use find replace feature with extended option in it like

  1. Click Ctrl+F and then go to replace tab
  2. Check the extended option in it
  3. in find type anything
  4. in replace you can type '\n'(to insert blank line) '\t' (to delete blank line)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!