Using RegEX To Prefix And Append In Notepad++

后端 未结 4 1490
醉酒成梦
醉酒成梦 2020-11-30 16:56

I have quite a large list of words in a txt file and I\'m trying to do a regex find and replace in Notepad++. I need to add a string before each line and after each line.. S

4条回答
  •  忘掉有多难
    2020-11-30 17:34

    Why don't you use the Notepad++ multiline editing capabilities?

    Hold down Alt while selecting text (using your usual click-and-drag approach) to select text across multiple lines. This is sometimes also referred to as column editing.

    You could place the cursor at the beginning of the file, Press (and hold) Alt, Shift and then just keep pressing the down-arrow or PageDown to select the lines that you want to prepend with some text :-) Easy. Multiline editing is a very useful feature of Notepad++. It's also possible in Visual Studio, in the same manner, and also in Eclipse by switching to Block Selection Mode by pressing Alt+Shift+A and then use mouse to select text across lines.

提交回复
热议问题