Question

I imported my project into eclipse and it became double spaced. Does anyone know how to fix this?

Tried:

Find: [\t ]+$ 
Replace With: Nothing //error: incompatible line delimiter

Find: \s*\n 
Replace With: Nothing //error: incompatible line delimiter

Find:  ^\s*\r?\n
Replace With: /R //error: incompatible line delimiter

Find:  ^\s*\r?\n
Replace With: nothing //string not found

Find:  (.)\r\n(.)
Replace With: nothing //string not found

File > Convert Line Delimiters to > Windows //no changes

Source > Apply Formatting //grayed out

CTRL + Shift + F //doesn't remove double spaces
Was it helpful?

Solution 2

In project properties I went to the flexFormatter and changed the option keep this many blank lines to 0.

OTHER TIPS

Have you tried (with regex check on of course):

Find: ^\s*\r?\n

Replace with: \R

This finds one or double lines and replaces it with one line.

EDIT:

There is a related post, maybe one of the answers is the right one for you: Remove empty lines in eclipse code editor by find/replace (Ctrl+F)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top