Monday, October 20, 2014

Notepad++ How to insert a new line when multi-editing?


can I insert a new line when multi-editing in Notepad++? I sometimes have to convert a list of codes like this:


code01,code02,code03

to a list like this:


code01
code02
code03

Multi-editing works well to backspace out the commas but when I try to enter a return to start the next line, multi-editing turns off.


I've looked around for documentation but can't find anything. I know I can use the find/replace dialogue to replace the commas with \n or \r but there are other more complicated situations where a multi-line new line creation would help me.
Thanks in advance,
Graham


Answer



Instead of using the Enter key, type the "carriage return" character (ASCII 13).


You can do this by holding Alt and typing 013 on the numeric keypad (while NumLock is on), and when you release the Alt key, it'll insert a carriage return.


Just tested in NP++ v6.6.3 and it worked. :)


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...