Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace line breaks

I am using visual studio code for several things. Everything is working fine, but I cannot get one specific thing to work.

I need the ability to remove line breaks from the text.

Example:

first line second line 

Should become:

first linesecondline 

Since a recent update it is possible to search for line breaks with using ^$. It is described here: https://github.com/Microsoft/vscode/pull/314

The problem I have is that when I use this for replacing, it does actually "add" to the line break and does not "replace" it.

like image 455
Armin Avatar asked Feb 10 '16 10:02

Armin


People also ask

How do I find and replace line breaks in Word?

Press Ctrl+F. Word displays the Navigation task pane at the left side of the screen. In the box at the top of the Navigation pane, enter the text for which you want to search. To search for a paragraph mark, enter ^p; to search for a line break, enter ^l.

What is meant by line break?

Meaning of line break in Englishthe point where a line of text ends and a new line starts: All line breaks and paragraphs will be generated automatically. It wasn't the end of the paragraph, only a line break.


1 Answers

The latest version of VS Code has a shortcut to remove breaks from selection (CTRL + J).

like image 64
tripleonard Avatar answered Oct 12 '22 21:10

tripleonard