Java-Eclipse deletes extra blank lines with shortcut keys

To delete a line in eclipse, use the ctrl+D shortcut key.
If you want to delete all blank lines in a file. The following methods can be used.
1. Hit eclipse
2. Use the shortcut key Ctrl+f
3. Type in the Find input box: ^\s*\n

 

4. The value of the Replace With input box is empty.
5. Select "Regular expressions" in [Options].
6. Click the [Replace All] button.

Guess you like

Origin blog.csdn.net/cherry_vicent/article/details/108709838