In project properties
I went to the flexFormatter
and changed the option keep this many blank lines
to 0.
Remove double spacing in eclipse
-
15-10-2022 - |
سؤال
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
المحلول 2
نصائح أخرى
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)
لا تنتمي إلى StackOverflow