Reputation: 23
This may be the dumbest question.
When I read log on elastic, I get a bunch of text with "\n" linebreak
I usually use vscode as a text editor.
When I copy/paste a log message in vscode, is there a way to ask vscode to format it and replace the "\n" with an actual linebreak?
Upvotes: 1
Views: 5681
Reputation: 1
The string with new lines works well but the reverse replace does not work if there are new lines in the file apart from in the string
Upvotes: 0
Reputation: 180805
If you are in an editor I think you are going to have to do this:
Find: \n
the regex option should not be selected
Replace: Hit Ctrl+Enter in the replace input field
You should get find hits on all the \n
literal texts in your log, replace all to see the result with actual newlines replacing all those literal \n
's. Demo:
Upvotes: 8