Search code examples
textmatetext-editor

How to delete line break in textmate


How to find and delete all the line breaks? I tried \n and it doesn't work! Regular expression? what kinda of expression?


Solution

  • I found the answer in the TextMate IRC channel.

    Press Option Return to search for literal line breaks in the Find and Replace panel.

    Searching for \n works if you select the "Regular Expression" option, but won't work in the literal search mode.