Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove blank line in Eclipse

Tags:

eclipse

How can I remove lines that only contain spaces when using Eclipse Find/Replace prompt. I checked the "Regular Expression" check box, and tried the following, neither of which worked.

^[:space:]*$ 

and

^\s*$ 
like image 644
Steve Avatar asked Dec 29 '09 12:12

Steve


People also ask

How do I get rid of extra blank lines?

This is how the document looks initially when there are blank lines between the text. Just click on the 'Show/Hide ¶' option in Word's control bar to view the paragraph tags. The double paragraph tags here indicate a blank line and replacing them with a single tag will remove the blank lines.

How do you blank a line in Java?

In Windows, a new line is denoted using “\r\n”, sometimes called a Carriage Return and Line Feed, or CRLF. Adding a new line in Java is as simple as including “\n” , “\r”, or “\r\n” at the end of our string.


1 Answers

Find: ^\s*\n

Replace with: (empty)

like image 140
iamamac Avatar answered Sep 28 '22 01:09

iamamac