Does Eclipse have shortcut keys to delete extra blank lines?

To delete a line in eclipse, use the baicrl+D shortcut du.
If you want to delete all the blank lines in a file. Dao can use the following methods.
1. Open the source code zhuan editor
2. Use the shortcut key Ctrl+f
3. Enter in the Find input box: ^\s*\n
4. The value of the Replace With input box is empty
5. Selected in [Options] "Regular expressions"
6. Click the [Replace All] button.

Original: https://zhidao.baidu.com/question/457362981.html

Guess you like

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