Insert Carriage Return "CR" before "LF"



  • Good Afternoon. How to insert Carriage Return “CR” before “LF” at the end of each line ?. Thanks for your help



  • @Jose-Emilio-Osorio

    Edit > EOL Conversion > Windows (CR LF)

    If it’s greyed out, then Notepad++ thinks it’s already CRLF. In which case, you will have to change it to one of the others, then change it back.

    Equivalently, look in the lower-right status bar: the third field from the right is the line-ending field; you can change line endings by right clicking and selecting the ending you want… again, toggling to something else and back if it already thinks it is CRLF.

    f8a087c6-8cf4-43ae-ba4e-2affd3140ed3-image.png
    ff9da854-4e46-42f6-9549-0452d191be5d-image.png



  • @Jose-Emilio-Osorio

    How to insert Carriage Return “CR” before “LF” at the end of each line ?

    They are probably already there and you need to do exactly nothing to insert them.

    If you are “unconfident” that Notepad++ is doing this for you, press the “Pilcrow” toolbar button…the one with this symbol on it:

    1096d341-751b-4d14-aa13-0890190fc3da-image.png

    In the Notepad++ toolbar, it is blue in color, not black.

    With that toolbar button in the depressed state, you will see the CR and LF in a Windows file, example:

    c1a3ed68-2955-43f0-98dd-669c5a52e220-image.png


Log in to reply