How to delete the current line and add a new line in Notepad++?
These two operations are very common but I can't find any key setting how to do them in Notepad++. Can any plugin do this job?
Show activity on this post. Then press ctrl+h while the new line is selected, and replace with nothing. This will delete all the newlines. Show activity on this post.
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.
Press Shift + End , if the cursor is at the beginning of the line. OR press Home key to get to the start of the line, and then press Shift + End .
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
. Look for SCI_LINEDELETE
and SCI_LINECUT
.
The version of my Notepad++ is 6.1.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With