Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 407
linjuming Avatar asked Jan 13 '13 02:01

linjuming


People also ask

How do you delete the line with Replace?

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.

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.

How do you select the current line in notepad?

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 .


1 Answers

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.

like image 181
Gang Yin Avatar answered Sep 23 '22 07:09

Gang Yin